1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 11:26:36 +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
+3 -6
View File
@@ -164,16 +164,13 @@ class CommandCSMode : public Command
case '*':
if (adding == -1)
break;
for (std::map<Anope::string, Mode *>::const_iterator it = ModeManager::Modes.begin(), it_end = ModeManager::Modes.end(); it != it_end; ++it)
for (unsigned j = 0; j < ModeManager::ChannelModes.size(); ++j)
{
Mode *m = it->second;
if (m->Class == MC_CHANNEL)
ChannelMode *cm = ModeManager::ChannelModes[j];
if (cm->CanSet(u))
{
ChannelMode *cm = debug_cast<ChannelMode *>(m);
if (cm->Type == MODE_REGULAR || (!adding && cm->Type == MODE_PARAM))
{
if (!cm->CanSet(u))
continue;
if (adding)
ci->c->SetMode(NULL, cm);
else