summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-06 18:09:36 -0400
committerAdam <Adam@anope.org>2014-04-06 18:09:36 -0400
commit1f8dec4c242200403640ed72043899aa08cb81dd (patch)
treeb0f0fb3c954faea27bda9b80ae3a75b5955c7601
parentfb5c5e3442994985af92122803db7b65ed9a4097 (diff)
Fix /os mode to not require a mode when setting param modes which taken no argument when setting
-rw-r--r--modules/commands/os_mode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/commands/os_mode.cpp b/modules/commands/os_mode.cpp
index 16c29c8de..379879844 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;