1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 19:16:37 +02:00

Change the mode name code to use Flags names in preparation for extban support

This commit is contained in:
Adam
2011-03-06 19:36:52 -05:00
parent 48e6221cf0
commit 093b3d258e
16 changed files with 506 additions and 509 deletions
+2 -4
View File
@@ -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);
}
}
}
}