repo: ngircd
action: commit
revision: 
path_from: 
revision_from: adf92302bf9bb6420acd1f1153515586794b1574:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit adf92302bf9bb6420acd1f1153515586794b1574
Author: Alexander Barton 
Date:   Thu Jan 5 00:24:46 2012 +0100

    WHOIS command: don't anser queries for IRC servers

    Thanks to Cahata for spotting this!

diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index c2f4910e47645807251c82e9815e61ccdbc08279..
index ..883893fc5d2c4add0d9cf61a3ebb7e86dca84824 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -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 {

-----END OF PAGE-----