summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-05-25 19:48:54 +0100
committerSadie Powell <sadie@witchery.services>2021-05-25 19:48:54 +0100
commit3555b981f911a4f22402d9daa922b70557002a53 (patch)
treea5e0f0b1cd76ea5b7c7733eb981f70b39caaf00e
parentb466b68485e388000a6165531db17433e8f6f00f (diff)
The dest should be checked for uline status not the source.
-rw-r--r--src/coremods/core_whois.cpp2
1 files changed, 1 insertions, 1 deletions
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()));
}