1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 15:06:39 +02:00

Fix /os mode to not require a mode when setting param modes which taken no argument when setting

This commit is contained in:
Adam
2014-04-06 18:09:36 -04:00
parent fb5c5e3442
commit 1f8dec4c24
+3 -1
View File
@@ -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;