1
0
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:
jantje_85
2009-09-26 12:52:08 +00:00
parent d8bd3afd76
commit 8011cd4f0b
+8
View File
@@ -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);