From 11e67c494a9a1e7796c7b6ec0a60c88019181020 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 11 Jul 2018 12:08:19 +0100 Subject: Fix replying with the source user in oper-restricted WHO lookups. --- src/commands/cmd_who.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/commands') 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& 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; } -- cgit v1.2.3