summaryrefslogtreecommitdiff
path: root/src/commands/cmd_who.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_who.cpp')
-rw-r--r--src/commands/cmd_who.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp
index 8438f8cdd..d92394c3b 100644
--- a/src/commands/cmd_who.cpp
+++ b/src/commands/cmd_who.cpp
@@ -340,15 +340,13 @@ CmdResult CommandWho::Handle (const std::vector<std::string>& parameters, User *
for (UserMembCIter i = cu->begin(); i != cu->end(); i++)
{
- /* None of this applies if we WHO ourselves */
- if (user != i->first)
{
/* opers only, please */
if (opt_viewopersonly && !IS_OPER(i->first))
continue;
/* If we're not inside the channel, hide +i users */
- if (i->first->IsModeSet('i') && !inside && !user->HasPrivPermission("users/auspex"))
+ if (!inside && user != i->first && i->first->IsModeSet('i') && !user->HasPrivPermission("users/auspex"))
continue;
}