diff options
-rw-r--r-- | src/cmd_who.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index c6a6a33c7..dfd0a445a 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -96,6 +96,10 @@ void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch std::string lcn = getlastchanname(u); chanrec* chlast = ServerInstance->FindChan(lcn); + /* Not visible to this user */ + if (u->Visibility && !u->Visibility->VisibleTo(user)) + return; + std::string wholine = initial + (ch ? ch->name : lcn) + " " + u->ident + " " + (opt_showrealhost ? u->host : u->dhost) + " " + ((*ServerInstance->Config->HideWhoisServer && !*user->oper) ? ServerInstance->Config->HideWhoisServer : u->server) + " " + u->nick + " "; |