git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6640
e03df62e-2008-0410-955e-
edbf42e46eb7
std::string wholine = initial;
wholine = wholine + ch->name + " " + i->second->ident + " " + (opt_showrealhost ? i->second->host : i->second->dhost) + " " +
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)
/* away? */
if (*(i->second)->awaymsg)
std::string wholine = initial;
wholine = wholine + getlastchanname(oper) + " " + oper->ident + " " + (opt_showrealhost ? oper->host : oper->dhost) + " " +
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));
ch = ServerInstance->FindChan(getlastchanname(oper));
std::string wholine = initial;
wholine = wholine + getlastchanname(i->second) + " " + i->second->ident + " " + (opt_showrealhost ? i->second->host : i->second->dhost) + " " +
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));
ch = ServerInstance->FindChan(getlastchanname(i->second));