1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 16:26:39 +02:00

Added support for tracking inspircd2.0 usermode +Q and cahnged the Flags bitsets for modes to not use a max defined value, it can go over

This commit is contained in:
Adam
2010-07-29 23:08:47 -04:00
parent cc64903179
commit abfc9926db
10 changed files with 20 additions and 18 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ std::map<ChannelModeName, ChannelMode *> ModeManager::ChannelModesByName;
/* Number of generic modes we support */
unsigned GenericChannelModes = 0, GenericUserModes = 0;
/* Default mlocked modes on */
Flags<ChannelModeName, CMODE_END> DefMLockOn;
Flags<ChannelModeName> DefMLockOn;
/* Default mlocked modes off */
Flags<ChannelModeName, CMODE_END> DefMLockOff;
Flags<ChannelModeName> DefMLockOff;
/* Map for default mlocked mode parameters */
std::map<ChannelModeName, Anope::string> DefMLockParams;
/* Modes to set on bots when they join the channel */
@@ -43,7 +43,7 @@ void SetDefaultMLock()
DefMLockOn.ClearFlags();
DefMLockOff.ClearFlags();
DefMLockParams.clear();
Flags<ChannelModeName, CMODE_END> *ptr = NULL;
Flags<ChannelModeName> *ptr = NULL;
Anope::string modes, param;
spacesepstream sep(Config.MLock);