summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-28 12:11:45 -0400
committerAdam <Adam@anope.org>2014-05-28 12:22:39 -0400
commitf97e339314257fa37cfcab0c2289fb6812e32e85 (patch)
treea1c9d352a771e0bb7d39d42178a7246d6f2c5434 /modules
parentf29e1cf383529a1a29f02b0669d973f5ee0b7a66 (diff)
parentba46b8e4abd8fef991732d5c52c858a229894a25 (diff)
Merge branch '2.0' into 2.1
Conflicts: .travis.yml src/config.cpp src/version.sh
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/ns_set.cpp2
-rw-r--r--modules/commands/os_mode.cpp4
-rw-r--r--modules/commands/os_reload.cpp5
-rw-r--r--modules/protocol/bahamut.cpp2
-rw-r--r--modules/protocol/hybrid.cpp2
-rw-r--r--modules/protocol/ngircd.cpp2
-rw-r--r--modules/protocol/plexus.cpp5
-rw-r--r--modules/protocol/ratbox.cpp2
8 files changed, 15 insertions, 9 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 984f1d002..e0d0299a3 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -122,7 +122,7 @@ class CommandNSSetPassword : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
- const Anope::string &param = params[1];
+ const Anope::string &param = params[0];
unsigned len = param.length();
if (Anope::ReadOnly)
diff --git a/modules/commands/os_mode.cpp b/modules/commands/os_mode.cpp
index 4d94759df..9a5d8c41f 100644
--- a/modules/commands/os_mode.cpp
+++ b/modules/commands/os_mode.cpp
@@ -89,7 +89,9 @@ class CommandOSMode : public Command
Anope::string param, param_log;
if (cm->type != MODE_REGULAR)
{
- if (!sep.GetToken(param))
+ if (cm->type == MODE_PARAM && !add && anope_dynamic_static_cast<ChannelModeParam *>(cm)->minus_no_arg)
+ ;
+ else if (!sep.GetToken(param))
continue;
param_log = param;
diff --git a/modules/commands/os_reload.cpp b/modules/commands/os_reload.cpp
index 647f187b4..b5705d611 100644
--- a/modules/commands/os_reload.cpp
+++ b/modules/commands/os_reload.cpp
@@ -26,8 +26,11 @@ class CommandOSReload : public Command
Log(LOG_ADMIN, source, this);
Configuration::Conf *new_config = new Configuration::Conf();
- delete Config;
+ Configuration::Conf *old = Config;
Config = new_config;
+ Config->Post(old);
+ delete old;
+
source.Reply(_("Services' configuration has been reloaded."));
}
catch (const ConfigException &ex)
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp
index 3b829d336..a67f4dc0d 100644
--- a/modules/protocol/bahamut.cpp
+++ b/modules/protocol/bahamut.cpp
@@ -523,7 +523,7 @@ class ProtoBahamut : public Module
ModeManager::AddChannelMode(new ChannelMode("INVITE", 'i'));
ModeManager::AddChannelMode(new ChannelModeFlood('f', false));
ModeManager::AddChannelMode(new ChannelModeKey('k'));
- ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l'));
+ ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l', true));
ModeManager::AddChannelMode(new ChannelMode("MODERATED", 'm'));
ModeManager::AddChannelMode(new ChannelMode("NOEXTERNAL", 'n'));
ModeManager::AddChannelMode(new ChannelMode("PRIVATE", 'p'));
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp
index 9dd906387..116f56a84 100644
--- a/modules/protocol/hybrid.cpp
+++ b/modules/protocol/hybrid.cpp
@@ -633,7 +633,7 @@ class ProtoHybrid : public Module
ModeManager::AddChannelMode(new ChannelModeStatus("OP", 'o', '@', 2));
/* l/k */
- ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l'));
+ ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l', true));
ModeManager::AddChannelMode(new ChannelModeKey('k'));
/* Add channel modes */
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index a18f8f770..5832da62f 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -651,7 +651,7 @@ class ProtongIRCd : public Module
/* Add channel modes */
ModeManager::AddChannelMode(new ChannelMode("INVITE", 'i'));
ModeManager::AddChannelMode(new ChannelModeKey('k'));
- ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l'));
+ ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l', true));
ModeManager::AddChannelMode(new ChannelMode("MODERATED", 'm'));
ModeManager::AddChannelMode(new ChannelMode("REGMODERATED", 'M'));
ModeManager::AddChannelMode(new ChannelMode("NOEXTERNAL", 'n'));
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp
index 0e22ba6c0..6e2930757 100644
--- a/modules/protocol/plexus.cpp
+++ b/modules/protocol/plexus.cpp
@@ -334,8 +334,9 @@ class ProtoPlexus : public Module
ModeManager::AddUserMode(new UserMode("INVIS", 'i'));
ModeManager::AddUserMode(new UserModeOperOnly("LOCOPS", 'l'));
ModeManager::AddUserMode(new UserMode("OPER", 'o'));
- ModeManager::AddUserMode(new UserMode("PRIV", 'p'));
ModeManager::AddUserMode(new UserModeOperOnly("NETADMIN", 'N'));
+ ModeManager::AddUserMode(new UserMode("PRIV", 'p'));
+ ModeManager::AddUserMode(new UserMode("ROUTING", 'q'));
ModeManager::AddUserMode(new UserModeNoone("REGISTERED", 'r'));
ModeManager::AddUserMode(new UserMode("REGPRIV", 'R'));
ModeManager::AddUserMode(new UserModeOperOnly("SNOMASK", 's'));
@@ -359,7 +360,7 @@ class ProtoPlexus : public Module
ModeManager::AddChannelMode(new ChannelModeStatus("OWNER", 'q', '~', 4));
/* l/k */
- ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l'));
+ ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l', true));
ModeManager::AddChannelMode(new ChannelModeKey('k'));
/* Add channel modes */
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index ec946c391..8a88e74a3 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -274,7 +274,7 @@ class ProtoRatbox : public Module
ModeManager::AddChannelMode(new ChannelModeStatus("OP", 'o', '@', 1));
/* l/k */
- ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l'));
+ ModeManager::AddChannelMode(new ChannelModeParam("LIMIT", 'l', true));
ModeManager::AddChannelMode(new ChannelModeKey('k'));
/* channel modes */