Commit Diff


commit - 762b0325df921622686096affc7ead41ba028959
commit + 5e3449a241b3ee1e8f60bc33c0b1342543254397
blob - dfc67b9b7660151da04b1e4fc9559bccef829c67
blob + 5e56949f553b92d1ed3154863313bd3700b56668
--- src/ngircd/irc-info.c
+++ 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)