1
0
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:
Adam
2015-02-05 20:16:36 -05:00
parent 64ca357b13
commit 9834518b28
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -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];