From fc848ee5ebaac232985b855b0348bf3f4d6b9b03 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 12 Sep 2016 16:08:34 +0200 Subject: core.statsmanager: Use correct variable for config validation [luacheck] --- core/statsmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/statsmanager.lua') diff --git a/core/statsmanager.lua b/core/statsmanager.lua index 67702dd9..237b1dd5 100644 --- a/core/statsmanager.lua +++ b/core/statsmanager.lua @@ -6,7 +6,7 @@ local fire_event = prosody.events.fire_event; local stats_interval_config = config.get("*", "statistics_interval"); local stats_interval = tonumber(stats_interval_config); -if stats_config and not stats_interval then +if stats_interval_config and not stats_interval then log("error", "Invalid 'statistics_interval' setting, statistics will be disabled"); end -- cgit v1.2.3