LINKS command: support <mask> parameter
The <mask> can be used to limit the servers shown in the listing.
This commit is contained in:
parent
762b0325df
commit
5e3449a241
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue