summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-10 17:02:20 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-10 17:02:20 +0000
commitddbde2059831e1532cfc0c453d61633bdccc8b2d (patch)
tree31e976a31c3ad294e66c5d492f4e737b445427b3 /src
parent83ca117cdc8d5bbe7c538a3eee478e2348b7f29c (diff)
Fix non-opers using who on themselves when set +i
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7698 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_who.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp
index 1697eb9fe..b8f0684ff 100644
--- a/src/cmd_who.cpp
+++ b/src/cmd_who.cpp
@@ -302,7 +302,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user)
{
if (whomatch(i->second, matchtext))
{
- if ((i->second->IsModeSet('i')) && (!IS_OPER(user)))
+ if ((i->second != user) && (i->second->IsModeSet('i')) && (!IS_OPER(user)))
continue;
SendWhoLine(user, initial, NULL, i->second, whoresults);