summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-02 13:59:33 -0500
committerAdam <Adam@anope.org>2013-01-02 13:59:33 -0500
commit827469600e8cf98fea7aec09ceaa77a097300b72 (patch)
tree6c957be4e9f2a0c8c6eddf2537b8553f1f6ffdbb /modules/protocol/unreal.cpp
parentbf718e869892bf418051d0140d7628c69d4ee3c9 (diff)
Move nickserv validate stuff to an event in nickserv.cpp
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r--modules/protocol/unreal.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 467724c49..bba15deec 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -803,7 +803,7 @@ struct IRCDMessageNick : IRCDMessage
User *user = new User(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7]);
- const NickAlias *na = NULL;
+ NickAlias *na = NULL;
if (params[6] == "0")
;
@@ -817,14 +817,8 @@ struct IRCDMessageNick : IRCDMessage
na = NickAlias::Find(params[6]);
}
- if (na)
- {
- user->Login(na->nc);
- if (!Config->NoNicknameOwnership && na->nc->HasFlag(NI_UNCONFIRMED) == false)
- user->SetMode(NickServ, UMODE_REGISTERED);
- }
- else if (NickServService)
- NickServService->Validate(user);
+ if (na && NickServService)
+ NickServService->Login(user, na);
}
else
source.GetUser()->ChangeNick(params[0]);