aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
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
commit6924d7bfb5c9bcd125a5b872bd9fb7fc6d1b5322 (patch)
tree07dce03a1f7fe8c3a38714afa625f0576259ded4 /core/modulemanager.lua
parent184f681d3f1d8eef901e16f8d5bdc0c5a6c11edf (diff)
downloadprosody-6924d7bfb5c9bcd125a5b872bd9fb7fc6d1b5322.tar.gz
prosody-6924d7bfb5c9bcd125a5b872bd9fb7fc6d1b5322.zip
modulemanager: Drop unnecessary prosody_events local
Diffstat (limited to 'core/modulemanager.lua')
-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 ---