mirror of
https://github.com/anope/anope.git
synced 2026-07-08 05:03:13 +02:00
Fix os_mode to handle channels going away due to mode changes, and maybe cs_mode
This commit is contained in:
@@ -487,7 +487,7 @@ class CommandCSMode : public Command
|
||||
case '*':
|
||||
if (adding == -1 || !has_access)
|
||||
break;
|
||||
for (unsigned j = 0; j < ModeManager::GetChannelModes().size(); ++j)
|
||||
for (unsigned j = 0; j < ModeManager::GetChannelModes().size() && ci->c; ++j)
|
||||
{
|
||||
ChannelMode *cm = ModeManager::GetChannelModes()[j];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user