diff options
author | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
commit | ed719c80e75f36475626233207a530de2659a063 (patch) | |
tree | 303c53ce36324b286e10a3e76d98a5e22a13fe1c /modules/protocol/unreal.cpp | |
parent | 77dc2e474669d8f0bee3cc047a10ddcfc4faf700 (diff) |
Buggy compilers are buggy
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index bba15deec..4621b3bc4 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -750,7 +750,9 @@ struct IRCDMessageNetInfo : IRCDMessage struct IRCDMessageNick : IRCDMessage { - IRCDMessageNick(Module *creator) : IRCDMessage(creator, "NICK", 2) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); } + ServiceReference<NickServService> NSService; + + IRCDMessageNick(Module *creator) : IRCDMessage(creator, "NICK", 2), NSService("NickServService", "NickServ") { SetFlag(IRCDMESSAGE_SOFT_LIMIT); } /* ** NICK - new @@ -817,8 +819,8 @@ struct IRCDMessageNick : IRCDMessage na = NickAlias::Find(params[6]); } - if (na && NickServService) - NickServService->Login(user, na); + if (na && NSService) + NSService->Login(user, na); } else source.GetUser()->ChangeNick(params[0]); |