diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-25 18:56:39 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-25 18:56:39 +0100 |
commit | b466b68485e388000a6165531db17433e8f6f00f (patch) | |
tree | a30b14cfd80a18b228aa30871fef723770404fe9 /src | |
parent | 772f7ceb94242a8ebfadd0d4e31209c0b51c2923 (diff) |
Don't send RPL_WHOISHOST for users on ulined servers.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_whois.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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())); } |