aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modulemanager.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 1846e0f0..9f90e34e 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -15,7 +15,6 @@ local pluginloader = require "util.pluginloader";
local hosts = hosts;
local prosody = prosody;
-local prosody_events = prosody.events;
local loadfile, pcall, xpcall = loadfile, pcall, xpcall;
local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv;
@@ -87,8 +86,7 @@ function load_modules_for_host(host)
load(host, module);
end
end
-prosody_events.add_handler("host-activated", load_modules_for_host);
---
+prosody.events.add_handler("host-activated", load_modules_for_host);
--- Private helpers ---