mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Don't send RPL_WHOISHOST for users on ulined servers.
This commit is contained in:
parent
772f7ceb94
commit
b466b68485
@ -210,7 +210,7 @@ void CommandWhois::DoWhois(LocalUser* user, User* dest, time_t signon, unsigned
|
||||
WhoisContextImpl whois(user, dest, lineevprov);
|
||||
|
||||
whois.SendLine(RPL_WHOISUSER, dest->ident, dest->GetDisplayedHost(), '*', dest->GetRealName());
|
||||
if (whois.IsSelfWhois() || user->HasPrivPermission("users/auspex"))
|
||||
if (!user->server->IsULine() && (whois.IsSelfWhois() || user->HasPrivPermission("users/auspex")))
|
||||
{
|
||||
whois.SendLine(RPL_WHOISHOST, InspIRCd::Format("is connecting from %s@%s %s", dest->ident.c_str(), dest->GetRealHost().c_str(), dest->GetIPString().c_str()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user