1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 03:03:14 +02:00

We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-02-04 23:49:27 +00:00
parent 3d4cf39940
commit 308070e019
79 changed files with 336 additions and 294 deletions
+3 -3
View File
@@ -395,7 +395,7 @@ class InspIRCdProto : public IRCDProto
void SetAutoIdentificationToken(User *u)
{
if (!u->nc)
if (!u->Account())
return;
u->SetMode(findbot(Config.s_NickServ), UMODE_REGISTERED);
@@ -871,7 +871,7 @@ int anope_event_uid(const char *source, int ac, const char **av)
user = prev_u_intro;
prev_u_intro = NULL;
if (user) na = findnick(user->nick);
if (user && user->server->sync == SSYNC_IN_PROGRESS && (!na || na->nc != user->nc))
if (user && user->server->sync == SSYNC_IN_PROGRESS && (!na || na->nc != user->Account()))
{
validate_user(user);
if (user->HasMode(UMODE_REGISTERED))
@@ -1156,7 +1156,7 @@ int anope_event_endburst(const char *source, int ac, const char **av)
* If not, validate the user. ~ Viper*/
prev_u_intro = NULL;
if (u) na = findnick(u->nick);
if (u && u->server->sync == SSYNC_IN_PROGRESS && (!na || na->nc != u->nc))
if (u && u->server->sync == SSYNC_IN_PROGRESS && (!na || na->nc != u->Account()))
{
validate_user(u);
if (u->HasMode(UMODE_REGISTERED))