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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user