diff options
Diffstat (limited to 'src')
-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 + " "; |