diff options
| author | 2007-10-27 15:10:16 +0000 | |
|---|---|---|
| committer | 2007-10-27 15:10:16 +0000 | |
| commit | 2e8b20693987ff11ab23945f89d869d97b2b88f9 (patch) | |
| tree | c6ad4abda6ab2216609e358ea4442eb7be716b38 /src/cmd_who.cpp | |
| parent | Fix for bug in windows with backslash directory seperators in config path whe... (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/branches/1_1_stable@8391 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_who.cpp')
| -rw-r--r-- | src/cmd_who.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 9e48e35ce..0b6b352e8 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -217,6 +217,8 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) /* parse flags */ const char *iter = parameters[1]; + usingwildcards = true; + while (*iter) { switch (*iter) @@ -285,7 +287,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *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; } |
