diff options
| author | Alexander Barton <alex@barton.de> | 2015-03-12 00:28:31 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2015-03-14 10:16:16 +0100 |
| commit | 2196e945e4ac5f41d6650c4ceb9120cfd8fc8d56 (patch) | |
| tree | f1c809fb5dfc53ac6233532f559499ff189bde13 | |
| parent | f16eb1b686ab3cd3c0b313ef6853dce3ee129677 (diff) | |
| download | ngircd-2196e945e4ac5f41d6650c4ceb9120cfd8fc8d56.tar.gz ngircd-2196e945e4ac5f41d6650c4ceb9120cfd8fc8d56.zip | |
Fix "WHO #<chan>" showing invisible users and hiding all visible
The logic is reversed ... This bug has been introduced by commit c74115f2, "Simplify mode checking on channels and users within a channel", ngIRCd releases 21, 21.1, and 22 are affected :-( Problem reported by Cahata in #ngircd, Thanks!
| -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 763c9302..61c6239c 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -162,7 +162,7 @@ IRC_WHO_Channel(CLIENT *Client, CHANNEL *Chan, bool OnlyOps) if (OnlyOps && !is_ircop) continue; - is_visible = Client_HasMode(c, 'i'); + is_visible = !Client_HasMode(c, 'i'); if (is_member || is_visible) { memset(flags, 0, sizeof(flags)); |