From 1f8dec4c242200403640ed72043899aa08cb81dd Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 6 Apr 2014 18:09:36 -0400 Subject: Fix /os mode to not require a mode when setting param modes which taken no argument when setting --- modules/commands/os_mode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/commands/os_mode.cpp') 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(cm)->minus_no_arg) + ; + else if (!sep.GetToken(param)) continue; param_log = param; -- cgit