diff options
author | Adam <Adam@anope.org> | 2015-02-05 20:16:36 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-02-05 20:16:43 -0500 |
commit | 9834518b28e3bb6ec62000c26be4e5927ca92979 (patch) | |
tree | 3da3d12ffd7ba97b105325d1c451a2f2ca8eaff9 /modules/commands/cs_mode.cpp | |
parent | 64ca357b136bc190e5fec32269b34b85bf9cf610 (diff) |
Fix os_mode to handle channels going away due to mode changes, and maybe cs_mode
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 8a30f102c..b11bc8862 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -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]; |