mirror of
https://github.com/anope/anope.git
synced 2026-07-10 03:23:13 +02:00
added support for SVSNICK in the ngircd protocol module
This commit is contained in:
@@ -19,6 +19,7 @@ class ngIRCdProto : public IRCDProto
|
||||
ngIRCdProto() : IRCDProto("ngIRCd")
|
||||
{
|
||||
DefaultPseudoclientModes = "+oi";
|
||||
CanSVSNick = true;
|
||||
MaxModes = 5;
|
||||
}
|
||||
|
||||
@@ -57,6 +58,11 @@ class ngIRCdProto : public IRCDProto
|
||||
this->SendNumeric(376, "*", ":End of MOTD command");
|
||||
}
|
||||
|
||||
void SendForceNickChange(const User *u, const Anope::string &newnick, time_t when) anope_override
|
||||
{
|
||||
UplinkSocket::Message(Me) << "SVSNICK " << u->nick << " " << newnick;
|
||||
}
|
||||
|
||||
void SendGlobalNotice(const BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override
|
||||
{
|
||||
UplinkSocket::Message(bi) << "NOTICE $" << dest->GetName() << " :" << msg;
|
||||
|
||||
Reference in New Issue
Block a user