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

Move nickserv validate stuff to an event in nickserv.cpp

This commit is contained in:
Adam
2013-01-02 13:59:33 -05:00
parent bf718e8698
commit 827469600e
10 changed files with 68 additions and 106 deletions
+3 -9
View File
@@ -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]);