diff options
-rw-r--r-- | src/commands/cmd_who.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp index 70fe78da1..18b9eb441 100644 --- a/src/commands/cmd_who.cpp +++ b/src/commands/cmd_who.cpp @@ -213,6 +213,9 @@ CmdResult CommandWho::Handle (const char** parameters, int pcnt, User *user) /* parse flags */ const char *iter = parameters[1]; + /* Fix for bug #444, WHO flags count as a wildcard */ + usingwildcards = true; + while (*iter) { switch (*iter) @@ -281,7 +284,7 @@ CmdResult CommandWho::Handle (const char** parameters, int pcnt, User *user) continue; /* If we're not inside the channel, hide +i users */ - if (i->first->IsModeSet('i') && !inside) + if (i->first->IsModeSet('i') && !inside && !IS_OPER(user)) continue; } |