From 6027123d12dc696326d37fe765092505eb1187b2 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 8 Apr 2021 16:10:03 +0200 Subject: [PATCH] Fix maintenance --- lib/decrees.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decrees.js b/lib/decrees.js index 09bf1926e..4eb1dff85 100644 --- a/lib/decrees.js +++ b/lib/decrees.js @@ -141,7 +141,7 @@ var args_isMaintenance = function (args) { var makeBroadcastSetter = function (attr, validation) { return function (Env, args) { - if ((validation && !validation(args)) || !args_isString(args)) { + if ((validation && !validation(args)) && !args_isString(args)) { throw new Error('INVALID_ARGS'); } var str = args[0];