summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-23 23:10:41 -0500
committerAdam <Adam@anope.org>2012-11-23 23:10:41 -0500
commitded89b0d4939c4c1b9bbbb9007cd12286ff077a0 (patch)
treef1962bc7e4dcd4ebedde23dbd875399bfb0f4932 /modules/protocol/unreal.cpp
parent36b1166cf6efddbc9a9abc8f00ad13bb0d4e56a9 (diff)
Made IRCDProto a Service
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r--modules/protocol/unreal.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 01541a93e..da96bd03b 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -16,7 +16,7 @@
class UnrealIRCdProto : public IRCDProto
{
public:
- UnrealIRCdProto() : IRCDProto("UnrealIRCd 3.2.x")
+ UnrealIRCdProto(Module *creator) : IRCDProto(creator, "UnrealIRCd 3.2.x")
{
DefaultPseudoclientModes = "+Soiq";
CanSVSNick = true;
@@ -1196,6 +1196,7 @@ class ProtoUnreal : public Module
public:
ProtoUnreal(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_time(this), message_version(this),
@@ -1215,11 +1216,6 @@ class ProtoUnreal : public Module
ModuleManager::SetPriority(this, PRIORITY_FIRST);
}
- IRCDProto *GetIRCDProto() anope_override
- {
- return &ircd_proto;
- }
-
void OnUserNickChange(User *u, const Anope::string &) anope_override
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));