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:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user