1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 07:13:13 +02:00

Buggy compilers are buggy

This commit is contained in:
Adam
2013-01-06 16:13:35 -05:00
parent 77dc2e4746
commit ed719c80e7
23 changed files with 61 additions and 62 deletions
+5 -3
View File
@@ -238,7 +238,9 @@ struct IRCDMessageServer : IRCDMessage
struct IRCDMessageUID : IRCDMessage
{
IRCDMessageUID(Module *creator) : IRCDMessage(creator, "UID", 11) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
ServiceReference<NickServService> NSService;
IRCDMessageUID(Module *creator) : IRCDMessage(creator, "UID", 11), NSService("NickServService", "NickServ") { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
/*
params[0] = nick
@@ -274,11 +276,11 @@ struct IRCDMessageUID : IRCDMessage
User *user = new User(params[0], params[4], params[9], params[5], ip, source.GetServer(), params[10], ts, params[3], params[7]);
try
{
if (NickServService && params[8].is_pos_number_only() && convertTo<time_t>(params[8]) == user->timestamp)
if (NSService && params[8].is_pos_number_only() && convertTo<time_t>(params[8]) == user->timestamp)
{
NickAlias *na = NickAlias::Find(user->nick);
if (na)
NickServService->Login(user, na);
NSService->Login(user, na);
}
}
catch (const ConvertException &) { }