From 9210fdcc7afee2ff4029a80286d08bfcca4b4f70 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 8 Feb 2008 19:48:05 +0000 Subject: [PATCH] Slight speed improvement in WHOing invisible users, insignificant git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8851 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_who.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp index 091ba728b..c31a3cea2 100644 --- a/src/commands/cmd_who.cpp +++ b/src/commands/cmd_who.cpp @@ -134,13 +134,13 @@ bool CommandWho::CanView(Channel* chan, User* user) void CommandWho::SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector &whoresults) { - std::string lcn = get_first_visible_channel(u); - Channel* chlast = ServerInstance->FindChan(lcn); - /* Not visible to this user */ if (u->Visibility && !u->Visibility->VisibleTo(user)) return; + std::string lcn = get_first_visible_channel(u); + Channel* chlast = ServerInstance->FindChan(lcn); + std::string wholine = initial + (ch ? ch->name : lcn) + " " + u->ident + " " + (opt_showrealhost ? u->host : u->dhost) + " " + ((*ServerInstance->Config->HideWhoisServer && !IS_OPER(user)) ? ServerInstance->Config->HideWhoisServer : u->server) + " " + u->nick + " "; -- 2.39.5