From 3555b981f911a4f22402d9daa922b70557002a53 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 May 2021 19:48:54 +0100 Subject: The dest should be checked for uline status not the source. --- src/coremods/core_whois.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp index 0f1fa8d20..edb5fc011 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 (!user->server->IsULine() && (whois.IsSelfWhois() || user->HasPrivPermission("users/auspex"))) + if (!dest->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