From 2e8b20693987ff11ab23945f89d869d97b2b88f9 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 27 Oct 2007 15:10:16 +0000 Subject: [PATCH] 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 --- src/cmd_who.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }