From: Alexander Barton Date: Wed, 4 Jan 2012 21:51:02 +0000 (+0100) Subject: LINKS command: support parameter X-Git-Tag: rel-19-rc1~60 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=5e3449a241b3ee1e8f60bc33c0b1342543254397 LINKS command: support parameter The can be used to limit the servers shown in the listing. --- diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index dfc67b9b..5e56949f 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -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)