From fcf05fde86e03966852b8be1f518ff45d092f6c7 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 24 Sep 2017 18:23:45 -0400 Subject: prosodyctl check: Fix traceback when no modules_enabled are defined (e.g., a completely empty config) --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index cdcd25d9..311f251e 100755 --- a/prosodyctl +++ b/prosodyctl @@ -1032,7 +1032,7 @@ function commands.check(arg) suggested_global_modules = set.intersection(suggested_global_modules or set.new(options.modules_enabled), set.new(options.modules_enabled)); end end - if not suggested_global_modules:empty() then + if suggested_global_modules and not suggested_global_modules:empty() then print(" Consider moving these modules into modules_enabled in the global section:") print(" "..tostring(suggested_global_modules / function (x) return ("%q"):format(x) end)); end -- cgit v1.2.3