diff options
| author | Alexander Barton <alex@barton.de> | 2012-01-05 00:24:46 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-01-05 00:24:46 +0100 |
| commit | adf92302bf9bb6420acd1f1153515586794b1574 (patch) | |
| tree | 7ac8def7a89c42bedf225fb3e81a88085baa9d70 /src | |
| parent | 566a451299cab41810bafc5ed11a5021e30d9b3d (diff) | |
| download | ngircd-adf92302bf9bb6420acd1f1153515586794b1574.tar.gz ngircd-adf92302bf9bb6420acd1f1153515586794b1574.zip | |
WHOIS command: don't anser queries for IRC servers
Thanks to Cahata for spotting this!
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index c2f4910e..883893fc 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 { |