mirror of
https://github.com/anope/anope.git
synced 2026-07-07 15:23:13 +02:00
Added missing part of #1107 patch. The last user to be introduced is now also validated.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2514 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -1413,12 +1413,20 @@ int anope_event_capab(const char *source, int ac, const char **av)
|
||||
|
||||
int anope_event_endburst(const char *source, int ac, const char **av)
|
||||
{
|
||||
User *u = prev_u_intro;
|
||||
Server *s = findserver_uid(servlist, source);
|
||||
if (!s)
|
||||
{
|
||||
throw new CoreException("Got ENDBURST without a source");
|
||||
}
|
||||
|
||||
/* Don't forget to mark the last user that was introduced as unregged, if applicable. ~ Viper */
|
||||
prev_u_intro = NULL;
|
||||
if (u && u->server->sync == SSYNC_IN_PROGRESS && !u->nc) {
|
||||
common_svsmode(u, "-r", NULL);
|
||||
validate_user(u);
|
||||
}
|
||||
|
||||
alog("Processed ENDBURST for %s", s->name);
|
||||
|
||||
finish_sync(s, 1);
|
||||
|
||||
Reference in New Issue
Block a user