From a2180fadb0df07552af312b664715fccb9be4461 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 27 Oct 2007 15:09:00 +0000 Subject: 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 --- src/commands/cmd_who.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_who.cpp') 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; } -- cgit v1.2.3