1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 23:46:39 +02:00

Add a "Network Service" (RPL_WHOISOPERATOR) line to WHOIS replies

This commit is contained in:
k4be
2022-01-08 14:13:30 +01:00
committed by Sadie Powell
parent c38106211c
commit d4632e5286
+1
View File
@@ -494,6 +494,7 @@ void Whois::Run(MessageSource &source, const std::vector<Anope::string> &params)
IRCD->SendNumeric(312, source.GetSource(), "%s %s :%s", u->nick.c_str(), Me->GetName().c_str(), Config->GetBlock("serverinfo")->Get<const Anope::string>("description").c_str());
if (bi)
IRCD->SendNumeric(317, source.GetSource(), "%s %ld %ld :seconds idle, signon time", bi->nick.c_str(), static_cast<long>(Anope::CurTime - bi->lastmsg), static_cast<long>(bi->signon));
IRCD->SendNumeric(313, source.GetSource(), "%s :is a Network Service", u->nick.c_str());
IRCD->SendNumeric(318, source.GetSource(), "%s :End of /WHOIS list.", u->nick.c_str());
}
else