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/hybrid.cpp | |
| parent | 77dc2e474669d8f0bee3cc047a10ddcfc4faf700 (diff) | |
Buggy compilers are buggy
Diffstat (limited to 'modules/protocol/hybrid.cpp')
| -rw-r--r-- | modules/protocol/hybrid.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index bc4fd55f4..a4711c708 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -485,7 +485,9 @@ struct IRCDMessageTMode : IRCDMessage struct IRCDMessageUID : IRCDMessage { - IRCDMessageUID(Module *creator) : IRCDMessage(creator, "UID", 10) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); } + ServiceReference<NickServService> NSService; + + IRCDMessageUID(Module *creator) : IRCDMessage(creator, "UID", 10), NSService("NickServService", "NickServ") { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); } /* 0 1 2 3 4 5 6 7 8 9 */ /* :0MC UID Steve 1 1350157102 +oi ~steve resolved.host 10.0.0.1 0MCAAAAAB 1350157108 :Mining all the time */ @@ -502,11 +504,11 @@ struct IRCDMessageUID : IRCDMessage params[9], params[2].is_pos_number_only() ? convertTo<time_t>(params[2]) : 0, params[3], params[7]); - if (NickServService && params[8] != "0") + if (NSService && params[8] != "0") { NickAlias *na = NickAlias::Find(params[8]); if (na != NULL) - NickServService->Login(user, na); + NSService->Login(user, na); } } }; |
