From b466b68485e388000a6165531db17433e8f6f00f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 May 2021 18:56:39 +0100 Subject: Don't send RPL_WHOISHOST for users on ulined servers. --- src/coremods/core_whois.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp index b342f723f..0f1fa8d20 100644 --- a/src/coremods/core_whois.cpp +++ b/src/coremods/core_whois.cpp @@ -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())); } -- cgit v1.2.3