aboutsummaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-04 21:12:29 +0100
committerGravatar Sadie Powell2021-07-05 16:49:21 +0100
commitaabaca020b76c6d78b3ddb7c65e1b1d627f7276c (patch)
tree321496474f2fe169602715fde3eaf184196583df /src/coremods
parentAllow hostchange to select users based on connect class. (diff)
Stop sending RPL_WHOISSERVICE as it conflicts with RPL_WHOISHELPOP.
Both Anope and Atheme send an oper type for services clients so this numeric is unnecessary. In cases where genericoper is enabled we now send "is a network service" in RPL_WHOISOPERATOR.
Diffstat (limited to 'src/coremods')
-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 7bbcb0c05..b1d03f0cc 100644
--- a/src/coremods/core_whois.cpp
+++ b/src/coremods/core_whois.cpp
@@ -234,7 +234,7 @@ void CommandWhois::DoWhois(LocalUser* user, User* dest, time_t signon, unsigned
if (dest->IsOper())
{
if (genericoper)
- whois.SendLine(RPL_WHOISOPERATOR, "is a server operator");
+ whois.SendLine(RPL_WHOISOPERATOR, dest->server->IsULine() ? "is a network service" : "is a server operator");
else
whois.SendLine(RPL_WHOISOPERATOR, InspIRCd::Format("is %s %s on %s", (strchr("AEIOUaeiou",dest->oper->name[0]) ? "an" : "a"), dest->oper->name.c_str(), ServerInstance->Config->Network.c_str()));
}