mirror of
https://github.com/anope/anope.git
synced 2026-06-26 05:26:37 +02:00
Mark all channels as syncing when we connect to our uplink. They will
finish syncing later when the uplink syncs. Normally the channel state is fully synced here anyway, except if we do not know the modes the uplink has yet. Also fix a related issue with resetting chanels and bouncing modes on our clients, if this is done prior to knowing which modes exist it would silently fail.
This commit is contained in:
@@ -78,8 +78,12 @@ void Channel::Reset()
|
||||
|
||||
/* reset modes for my clients */
|
||||
if (uc->user->server == Me)
|
||||
{
|
||||
for (size_t i = 0; i < f.Modes().length(); ++i)
|
||||
this->SetMode(NULL, ModeManager::FindChannelModeByChar(f.Modes()[i]), uc->user->GetUID(), false);
|
||||
/* Modes might not exist yet, so be sure the status is really reset */
|
||||
uc->status = f;
|
||||
}
|
||||
}
|
||||
|
||||
for (ChanUserList::const_iterator it = this->users.begin(), it_end = this->users.end(); it != it_end; ++it)
|
||||
|
||||
Reference in New Issue
Block a user