]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_who.cpp
Fix for bug typo, dont let it creep into the release!
[user/henk/code/inspircd.git] / src / cmd_who.cpp
index c6a6a33c7799a8338fae260c483e6b9869a9834f..dfd0a445a403aabe079fef9607acebb3e1e14d25 100644 (file)
@@ -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 + " ";