From eb7c9d0a863089ed9dc5c428c1d1214c8f0b85ba Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 9 Aug 2011 17:57:35 -0400 Subject: Bug #1287 - Fixed chan_set_correct_modes to not deop the first user from syncing servers --- src/protocol/inspircd12.c | 6 +++++- src/protocol/inspircd20.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/protocol') diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c index 01703baed..3dbc1768b 100644 --- a/src/protocol/inspircd12.c +++ b/src/protocol/inspircd12.c @@ -127,7 +127,7 @@ IRCDVar myIrcd[] = { 1, /* support helper umode */ 0, /* p10 */ NULL, /* character set */ - 0, /* reports sync state */ + 1, /* reports sync state */ 1, /* CIDR channelbans */ 0, /* +j */ CMODE_j, /* +j Mode */ @@ -1803,6 +1803,7 @@ int anope_event_burst(char *source, int ac, char **av) int anope_event_eob(char *source, int ac, char **av) { + Server *s = findserver_uid(servlist, source); User *u = u_intro_regged; u_intro_regged = NULL; @@ -1814,6 +1815,9 @@ int anope_event_eob(char *source, int ac, char **av) validate_user(u); } + if (s != NULL) + finish_sync(s, 1); + /* End of burst.. */ burst = 0; diff --git a/src/protocol/inspircd20.c b/src/protocol/inspircd20.c index 969ad4a94..63f7ba558 100644 --- a/src/protocol/inspircd20.c +++ b/src/protocol/inspircd20.c @@ -158,7 +158,7 @@ IRCDVar myIrcd[] = { 1, /* support helper umode */ 0, /* p10 */ NULL, /* character set */ - 0, /* reports sync state */ + 1, /* reports sync state */ 1, /* CIDR channelbans */ 0, /* +j */ CMODE_j, /* +j Mode */ @@ -1809,6 +1809,7 @@ int anope_event_burst(char *source, int ac, char **av) int anope_event_eob(char *source, int ac, char **av) { + Server *s = findserver_uid(servlist, source); User *u = u_intro_regged; u_intro_regged = NULL; @@ -1820,6 +1821,9 @@ int anope_event_eob(char *source, int ac, char **av) validate_user(u); } + if (s != NULL) + finish_sync(s, 1); + /* End of burst.. */ burst = 0; -- cgit