mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
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
This commit is contained in:
parent
fa6b96d825
commit
2e8b206939
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user