diff options
| author | Alexander Barton <alex@barton.de> | 2012-01-04 22:51:02 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-01-04 22:51:02 +0100 |
| commit | 5e3449a241b3ee1e8f60bc33c0b1342543254397 (patch) | |
| tree | 480b8e68c030e028c363516179657c29ca5d1b39 | |
| parent | 762b0325df921622686096affc7ead41ba028959 (diff) | |
| download | ngircd-5e3449a241b3ee1e8f60bc33c0b1342543254397.tar.gz ngircd-5e3449a241b3ee1e8f60bc33c0b1342543254397.zip | |
LINKS command: support <mask> parameter
The <mask> can be used to limit the servers shown in the listing.
| -rw-r--r-- | src/ngircd/irc-info.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |