summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);