1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 18:26:39 +02:00

Add SVSNICK and SVSHOLD to hybrid

This commit is contained in:
Adam
2013-02-23 17:41:52 -05:00
parent 35c260877f
commit d04db3d38b
2 changed files with 22 additions and 11 deletions
+2 -10
View File
@@ -45,6 +45,8 @@ class PlexusProto : public IRCDProto
void SendAkill(User *u, XLine *x) anope_override { hybrid->SendAkill(u, x); }
void SendServer(const Server *server) anope_override { hybrid->SendServer(server); }
void SendChannel(Channel *c) anope_override { hybrid->SendChannel(c); }
void SendSVSHold(const Anope::string &nick) anope_override { hybrid->SendSVSHold(nick); }
void SendSVSHoldDel(const Anope::string &nick) anope_override { hybrid->SendSVSHoldDel(nick); }
void SendJoin(const User *user, Channel *c, const ChannelStatus *status) anope_override
{
@@ -162,16 +164,6 @@ class PlexusProto : public IRCDProto
{
UplinkSocket::Message(source) << "ENCAP " << user->server->GetName() << " SVSPART " << user->GetUID() << " " << chan;
}
void SendSVSHold(const Anope::string &nick) anope_override
{
UplinkSocket::Message(OperServ) << "ENCAP * RESV " << Config->NSReleaseTimeout << " " << nick << " 0 :Being held for registered user";
}
void SendSVSHoldDel(const Anope::string &nick) anope_override
{
UplinkSocket::Message(OperServ) << "UNRESV * " << nick;
}
};
struct IRCDMessageEncap : IRCDMessage