diff options
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index ba8eea82c..52795485f 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -12,12 +12,13 @@ #include "module.h" static Anope::string UplinkSID; -static IRCDProto *hybrid; + +static ServiceReference<IRCDProto> hybrid("IRCDProto", "hybrid"); class RatboxProto : public IRCDProto { public: - RatboxProto() : IRCDProto("Ratbox 3.0+") + RatboxProto(Module *creator) : IRCDProto(creator, "Ratbox 3.0+") { DefaultPseudoclientModes = "+oiS"; CanSNLine = true; @@ -230,6 +231,7 @@ class ProtoRatbox : public Module public: ProtoRatbox(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL), + ircd_proto(this), message_away(this), message_capab(this), message_error(this), message_kick(this), message_kill(this), message_mode(this), message_motd(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_time(this), message_topic(this), @@ -249,7 +251,6 @@ class ProtoRatbox : public Module m_hybrid = ModuleManager::FindModule("hybrid"); if (!m_hybrid) throw ModuleException("Unable to find hybrid"); - hybrid = m_hybrid->GetIRCDProto(); if (!hybrid) throw ModuleException("No protocol interface for hybrid"); @@ -264,11 +265,6 @@ class ProtoRatbox : public Module ModuleManager::UnloadModule(m_hybrid, NULL); } - IRCDProto *GetIRCDProto() anope_override - { - return &ircd_proto; - } - void OnServerSync(Server *s) anope_override { if (NickServService) |