Diff

core/modulemanager.lua @ 4533:c6480d17be1e

modulemanager: Drop unnecessary prosody_events local
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jan 2012 18:47:33 +0000
parent 4532:d8dbf569766c
child 4534:7a0a31c4f6c5
line wrap: on
line diff
--- a/core/modulemanager.lua	Sun Jan 22 18:46:17 2012 +0000
+++ b/core/modulemanager.lua	Sun Jan 22 18:47:33 2012 +0000
@@ -15,7 +15,6 @@
 
 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 @@
 		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 ---