summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-12-28 12:49:04 -0500
committerAdam <Adam@anope.org>2011-12-28 12:49:04 -0500
commitf1b05acf269817b9fd70bab24fe66fbfe936beba (patch)
treeeb1192b12b72b6ea24e45add439efac20bb7a20f /modules/protocol/unreal.cpp
parenta4bf770a49e8e0df31b45859924bf002c141b2eb (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.cpp12
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]);
}