]> arthur.barton.de Git - ngircd-alex.git/commitdiff
WHOIS command: don't anser queries for IRC servers
authorAlexander Barton <alex@barton.de>
Wed, 4 Jan 2012 23:24:46 +0000 (00:24 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 4 Jan 2012 23:24:46 +0000 (00:24 +0100)
Thanks to Cahata for spotting this!

src/ngircd/irc-info.c

index c2f4910e47645807251c82e9815e61ccdbc08279..883893fc5d2c4add0d9cf61a3ebb7e86dca84824 100644 (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 {