aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-01-22 18:47:33 +0000
committerMatthew Wild <mwild1@gmail.com>2012-01-22 18:47:33 +0000
commit4595904c7580d6ac38f9e659da4c9d9b255526b0 (patch)
tree07dce03a1f7fe8c3a38714afa625f0576259ded4 /core
parent5ae5e9a1e5e37d4e088e77c82238055aca816967 (diff)
downloadprosody-4595904c7580d6ac38f9e659da4c9d9b255526b0.tar.gz
prosody-4595904c7580d6ac38f9e659da4c9d9b255526b0.zip
modulemanager: Drop unnecessary prosody_events local
Diffstat (limited to 'core')
-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 ---