From 8011cd4f0b81ab5562de0361477ccc1c8d285db8 Mon Sep 17 00:00:00 2001 From: jantje_85 Date: Sat, 26 Sep 2009 12:52:08 +0000 Subject: [PATCH] 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 --- src/protocol/inspircd12.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 8000f16a3..8fa31d55e 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -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);