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:
brain 2007-10-27 15:10:16 +00:00
parent fa6b96d825
commit 2e8b206939

View File

@ -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;
}