From f1b05acf269817b9fd70bab24fe66fbfe936beba Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 28 Dec 2011 12:49:04 -0500 Subject: [PATCH] Fixed this back now unreal sends 0 for non logged in users --- modules/protocol/unreal.cpp | 12 ++++++++---- 1 file 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(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(params[6]) == user->timestamp) na = findnick(user->nick); } - else if (params[6] != "*") + else { na = findnick(params[6]); }