Diff

plugins/mod_vcard.lua @ 1042:a3d77353c18a

mod_*: Fix a load of global accesses
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 21:32:23 +0100
parent 896:2c0b9e3c11c3
child 1523:841d61be198f
line wrap: on
line diff
--- a/plugins/mod_vcard.lua	Wed Apr 22 20:52:27 2009 +0100
+++ b/plugins/mod_vcard.lua	Wed Apr 22 21:32:23 2009 +0100
@@ -8,13 +8,13 @@
 
 
 
-require "util.datamanager"
-local datamanager = datamanager;
+local hosts = _G.hosts;
+local datamanager = require "util.datamanager"
 
 local st = require "util.stanza"
 local t_concat, t_insert = table.concat, table.insert;
 
-require "util.jid"
+local jid = require "util.jid"
 local jid_split = jid.split;
 
 module:add_feature("vcard-temp");