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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user