WHOIS command: don't anser queries for IRC servers

Thanks to Cahata for spotting this!
This commit is contained in:
Alexander Barton 2012-01-05 00:24:46 +01:00
parent 566a451299
commit adf92302bf
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req )
*/
if (!has_wildcards || is_remote) {
c = Client_Search(query);
if (c) {
if (c && Client_Type(c) == CLIENT_USER) {
if (!IRC_WHOIS_SendReply(Client, from, c))
return DISCONNECTED;
} else {