1
0
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:
DukePyrolator
2012-11-03 09:40:01 +01:00
parent 792091b23c
commit 0c47017046
+6
View File
@@ -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;