From 5e3449a241b3ee1e8f60bc33c0b1342543254397 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 4 Jan 2012 22:51:02 +0100 Subject: [PATCH] LINKS command: support parameter The can be used to limit the servers shown in the listing. --- src/ngircd/irc-info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2