summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/services.h10
-rw-r--r--src/protocol/inspircd12.cpp6
-rw-r--r--src/protocol/unreal32.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/include/services.h b/include/services.h
index b3f2ee4b1..3acbd6ebd 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1116,7 +1116,6 @@ class UserMode
/** Default constructor
* @param nName The mode name
- * @param mMode A value representing the mode
*/
UserMode(UserModeName mName)
{
@@ -1143,7 +1142,6 @@ class ChannelMode
/** Default constructor
* @param mName The mode name
- * @param mMode A value representing the mode
*/
ChannelMode(ChannelModeName mName)
{
@@ -1208,12 +1206,12 @@ class ChannelModeParam : public ChannelMode
/** Default constructor
* @param mName The mode name
- * @param mMode A value representing the mode
+ * @param MinusArg true if this mode sends no arg when unsetting
*/
- ChannelModeParam(ChannelModeName mName) : ChannelMode(mName)
+ ChannelModeParam(ChannelModeName mName, bool MinusArg = false) : ChannelMode(mName)
{
this->Type = MODE_PARAM;
- MinusNoArg = false;
+ MinusNoArg = MinusArg;
}
/** Default destructor
@@ -1244,6 +1242,8 @@ class ChannelModeStatus : public ChannelMode
/** Default constructor
* @param mName The mode name
* @param mStatus A CUS_ value
+ * @param mSymbol The symbol for the mode, eg @ % +
+ * @param mProtectBotServ Should botserv clients reset this on themself if it gets unset>
*/
ChannelModeStatus(ChannelModeName mName, int16 mStatus, char mSymbol, bool mProtectBotServ = false) : ChannelMode(mName)
{
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp
index d0f758518..5f1eeb39c 100644
--- a/src/protocol/inspircd12.cpp
+++ b/src/protocol/inspircd12.cpp
@@ -1099,11 +1099,11 @@ int anope_event_capab(const char *source, int ac, const char **av)
if (strstr(av[1], "m_blockcaps.so"))
ModeManager::AddChannelMode('B', new ChannelMode(CMODE_BLOCKCAPS));
if (strstr(av[1], "m_nickflood.so"))
- ModeManager::AddChannelMode('F', new ChannelModeParam(CMODE_NICKFLOOD));
+ ModeManager::AddChannelMode('F', new ChannelModeParam(CMODE_NICKFLOOD, true));
if (strstr(av[1], "m_messageflood.so"))
- ModeManager::AddChannelMode('f', new ChannelModeParam(CMODE_FLOOD));
+ ModeManager::AddChannelMode('f', new ChannelModeParam(CMODE_FLOOD, true));
if (strstr(av[1], "m_joinflood.so"))
- ModeManager::AddChannelMode('j', new ChannelModeParam(CMODE_JOINFLOOD));
+ ModeManager::AddChannelMode('j', new ChannelModeParam(CMODE_JOINFLOOD, true));
if (strstr(av[1], "m_permchannels.so"))
ModeManager::AddChannelMode('P', new ChannelMode(CMODE_PERM));
if (strstr(av[1], "m_nonotice.so"))
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 52f7beaaf..d8f60514d 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1194,7 +1194,7 @@ void moduleAddModes()
ModeManager::AddChannelMode('c', new ChannelMode(CMODE_BLOCKCOLOR));
ModeManager::AddChannelMode('f', new ChannelModeFlood());
ModeManager::AddChannelMode('i', new ChannelMode(CMODE_INVITE));
- ModeManager::AddChannelMode('j', new ChannelModeParam(CMODE_JOINFLOOD));
+ ModeManager::AddChannelMode('j', new ChannelModeParam(CMODE_JOINFLOOD, true));
ModeManager::AddChannelMode('k', new ChannelModeKey());
ModeManager::AddChannelMode('l', new ChannelModeParam(CMODE_LIMIT));
ModeManager::AddChannelMode('m', new ChannelMode(CMODE_MODERATED));