summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-06 19:36:52 -0500
committerAdam <Adam@anope.org>2011-03-06 19:36:52 -0500
commit093b3d258e7b14d2aa057ca6113de034b5063efe (patch)
tree3c169ecf5f2a8b299df32072834e040cf1d0966b /src/channels.cpp
parent48e6221cf0f2592b85ef220876435b966b6a49ed (diff)
Change the mode name code to use Flags names in preparation for extban support
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index c68fd3ba0..9a8427bf3 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -74,14 +74,12 @@ void Channel::Reset()
if (findbot(uc->user->nick))
{
- for (std::map<char, ChannelMode *>::iterator mit = ModeManager::ChannelModesByChar.begin(), mit_end = ModeManager::ChannelModesByChar.end(); mit != mit_end; ++mit)
+ for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i)
{
- ChannelMode *cm = mit->second;
+ ChannelMode *cm = ModeManager::ChannelModes[i];
if (flags.HasFlag(cm->Name))
- {
this->SetMode(NULL, cm, uc->user->nick, false);
- }
}
}
}