stanzarouter: Make _G.hosts local

Wed, 22 Apr 2009 21:33:44 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 22 Apr 2009 21:33:44 +0100
changeset 1043
ad87f555b484
parent 1042
a3d77353c18a
child 1044
41a0c76127f4

stanzarouter: Make _G.hosts local

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Wed Apr 22 21:32:23 2009 +0100
+++ b/core/stanza_router.lua	Wed Apr 22 21:33:44 2009 +0100
@@ -10,6 +10,8 @@
 
 local log = require "util.logger".init("stanzarouter")
 
+local hosts = _G.hosts;
+
 local st = require "util.stanza";
 local send_s2s = require "core.s2smanager".send_to_host;
 local user_exists = require "core.usermanager".user_exists;

mercurial