diff options
| author | Adam <Adam@anope.org> | 2011-03-06 19:36:52 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-03-06 19:36:52 -0500 |
| commit | 093b3d258e7b14d2aa057ca6113de034b5063efe (patch) | |
| tree | 3c169ecf5f2a8b299df32072834e040cf1d0966b /modules/protocol/inspircd-ts6.h | |
| parent | 48e6221cf0f2592b85ef220876435b966b6a49ed (diff) | |
Change the mode name code to use Flags names in preparation for extban support
Diffstat (limited to 'modules/protocol/inspircd-ts6.h')
| -rw-r--r-- | modules/protocol/inspircd-ts6.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h index 427233738..952268184 100644 --- a/modules/protocol/inspircd-ts6.h +++ b/modules/protocol/inspircd-ts6.h @@ -113,9 +113,9 @@ class InspIRCdTS6Proto : public IRCDProto * merge these modes with +nrt and other mlocked modes */ if (status) - for (size_t i = CMODE_BEGIN + 1; i != CMODE_END; ++i) - if (status->HasFlag(static_cast<ChannelModeName>(i))) - c->SetMode(user, static_cast<ChannelModeName>(i), user->nick, false); + for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i) + if (status->HasFlag(ModeManager::ChannelModes[i]->Name)) + c->SetMode(user, ModeManager::ChannelModes[i], user->nick, false); } /* UNSQLINE */ |
