aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 1 insertions, 3 deletions
diff --git a/prosodyctl b/prosodyctl
index 52a96a75..0bc9869d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -120,12 +120,10 @@ local error_messages = setmetatable({
["not-running"] = "Prosody is not running";
}, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end });
-local events = require "util.events".new();
-
hosts = prosody.hosts;
for hostname, config in pairs(config.getconfig()) do
- hosts[hostname] = { events = events };
+ hosts[hostname] = { events = require "util.events".new() };
end
require "core.modulemanager"