Apply <options:hidewhois> in /who results (bug #239); someone should clean up /who soon, perhaps i'll do it

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6640 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
special 2007-03-09 03:23:32 +00:00
parent d5e5e016f9
commit 4903848416

View File

@ -169,7 +169,8 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user)
std::string wholine = initial;
wholine = wholine + ch->name + " " + i->second->ident + " " + (opt_showrealhost ? i->second->host : i->second->dhost) + " " +
i->second->server + " " + i->second->nick + " ";
((*ServerInstance->Config->HideWhoisServer && !*user->oper) ? ServerInstance->Config->HideWhoisServer : i->second->server) +
" " + i->second->nick + " ";
/* away? */
if (*(i->second)->awaymsg)
@ -207,7 +208,8 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user)
std::string wholine = initial;
wholine = wholine + getlastchanname(oper) + " " + oper->ident + " " + (opt_showrealhost ? oper->host : oper->dhost) + " " +
oper->server + " " + oper->nick + " ";
((*ServerInstance->Config->HideWhoisServer && !*user->oper) ? ServerInstance->Config->HideWhoisServer : oper->server) +
" " + oper->nick + " ";
ch = ServerInstance->FindChan(getlastchanname(oper));
@ -241,7 +243,8 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user)
std::string wholine = initial;
wholine = wholine + getlastchanname(i->second) + " " + i->second->ident + " " + (opt_showrealhost ? i->second->host : i->second->dhost) + " " +
i->second->server + " " + i->second->nick + " ";
((*ServerInstance->Config->HideWhoisServer && !*user->oper) ? ServerInstance->Config->HideWhoisServer : i->second->server) +
" " + i->second->nick + " ";
ch = ServerInstance->FindChan(getlastchanname(i->second));