diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-08 19:48:05 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-08 19:48:05 +0000 |
commit | 9210fdcc7afee2ff4029a80286d08bfcca4b4f70 (patch) | |
tree | ff3fb021438a134afa7fbdda4289a17311a79d6f /src/commands | |
parent | 2d8e2d4e457373e5f39996d002bdfd7c3e6ebc8e (diff) |
Slight speed improvement in WHOing invisible users, insignificant
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8851 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_who.cpp | 6 |
1 files 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<std::string> &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 + " "; |