1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 19:03:14 +02:00

Added MinusNoArg to insp modes Ffj and unreal mode j

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2589 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-10-25 14:32:38 +00:00
parent a43424dbb9
commit a491eed3ff
3 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -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)
{
+3 -3
View File
@@ -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"))
+1 -1
View File
@@ -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));