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:
@@ -494,6 +494,7 @@ void Whois::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user