diff options
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 242dd41e1..133074eac 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -59,18 +59,18 @@ class InspIRCd12Proto : public IRCDProto UplinkSocket::Message(Me) << "CHGHOST " << nick << " " << vhost; } - void SendAddLine(const Anope::string &type, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason) + void SendAddLine(const Anope::string &xtype, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason) { - UplinkSocket::Message(Me) << "ADDLINE " << type << " " << mask << " " << addedby << " " << Anope::CurTime << " " << duration << " :" << reason; + UplinkSocket::Message(Me) << "ADDLINE " << xtype << " " << mask << " " << addedby << " " << Anope::CurTime << " " << duration << " :" << reason; } - void SendDelLine(const Anope::string &type, const Anope::string &mask) + void SendDelLine(const Anope::string &xtype, const Anope::string &mask) { - UplinkSocket::Message(Me) << "DELLINE " << type << " " << mask; + UplinkSocket::Message(Me) << "DELLINE " << xtype << " " << mask; } public: - InspIRCd12Proto() : IRCDProto("InspIRCd 1.2") + InspIRCd12Proto(Module *creator) : IRCDProto(creator, "InspIRCd 1.2") { DefaultPseudoclientModes = "+I"; CanSVSNick = true; @@ -1206,6 +1206,7 @@ class ProtoInspIRCd : public Module public: ProtoInspIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL), + ircd_proto(this), message_away(this), message_error(this), message_join(this), message_kick(this), message_kill(this), message_motd(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_topic(this), message_version(this), @@ -1233,11 +1234,6 @@ class ProtoInspIRCd : public Module it->second->GenerateUID(); } - IRCDProto *GetIRCDProto() anope_override - { - return &ircd_proto; - } - void OnUserNickChange(User *u, const Anope::string &) anope_override { /* InspIRCd 1.2 doesn't set -r on nick change, remove -r here. Note that if we have to set +r later |
