LINKS command: support <mask> parameter

The <mask> can be used to limit the servers shown in the listing.
This commit is contained in:
Alexander Barton 2012-01-04 22:51:02 +01:00
parent 762b0325df
commit 5e3449a241
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ IRC_LINKS(CLIENT *Client, REQUEST *Req)
c = Client_First();
while (c) {
if (Client_Type(c) == CLIENT_SERVER) {
if (Client_Type(c) == CLIENT_SERVER
&& MatchCaseInsensitive(mask, Client_ID(c))) {
if (!IRC_WriteStrClient(from, RPL_LINKS_MSG,
Client_ID(from), Client_ID(c),
Client_ID(Client_TopServer(c)