diff options
author | Adam <Adam@anope.org> | 2011-12-28 12:49:04 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-12-28 12:49:04 -0500 |
commit | f1b05acf269817b9fd70bab24fe66fbfe936beba (patch) | |
tree | eb1192b12b72b6ea24e45add439efac20bb7a20f /modules/protocol/unreal.cpp | |
parent | a4bf770a49e8e0df31b45859924bf002c141b2eb (diff) |
Fixed this back now unreal sends 0 for non logged in users
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index e4abefce3..bd75d5635 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -529,12 +529,14 @@ class Unreal32IRCdMessage : public IRCdMessage { NickAlias *na = NULL; - if (params[6].is_pos_number_only()) + if (params[6] == "0") + ; + else if (params[6].is_pos_number_only()) { if (convertTo<time_t>(params[6]) == user->timestamp) na = findnick(user->nick); } - else if (params[6] != "*") + else { na = findnick(params[6]); } @@ -561,12 +563,14 @@ class Unreal32IRCdMessage : public IRCdMessage { NickAlias *na = NULL; - if (params[6].is_pos_number_only()) + if (params[6] == "0") + ; + else if (params[6].is_pos_number_only()) { if (convertTo<time_t>(params[6]) == user->timestamp) na = findnick(user->nick); } - else if (params[6] != "*") + else { na = findnick(params[6]); } |