1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 08:16:39 +02:00

Fix not resetting channel status modes on our clients when a channel ts lowers

This commit is contained in:
Adam
2013-08-25 22:57:26 -04:00
parent 714a4a3004
commit 678f54903d
+3 -2
View File
@@ -76,9 +76,10 @@ void Channel::Reset()
ChannelStatus f = uc->status;
uc->status.Clear();
if (BotInfo::Find(uc->user->nick))
/* reset modes for my clients */
if (uc->user->server == Me)
for (size_t i = 0; i < f.Modes().length(); ++i)
this->SetMode(NULL, ModeManager::FindChannelModeByName(f.Modes()[i]), uc->user->GetUID(), false);
this->SetMode(NULL, ModeManager::FindChannelModeByChar(f.Modes()[i]), uc->user->GetUID(), false);
}
for (ChanUserList::const_iterator it = this->users.begin(), it_end = this->users.end(); it != it_end; ++it)