diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-27 15:09:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-27 15:09:00 +0000 |
commit | a2180fadb0df07552af312b664715fccb9be4461 (patch) | |
tree | e9f7f3db799af0e73e3b208c0c1cd8ca8d527396 /src/commands | |
parent | 2ba3c38388fdd31ddf594302c50d2903f7af2afc (diff) |
Who flags now count as a wildcard for searching for privacy reasons, fixes bug #444 reported by Smartys
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8390 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-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; } |