Software /
code /
prosody-modules
Diff
mod_bidi/mod_bidi.lua @ 1125:901e361af918
mod_bidi: Fix accidentally module-global value
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Aug 2013 00:35:20 +0200 |
parent | 1124:689e69df1cc4 |
child | 1126:6fd328b8e136 |
line wrap: on
line diff
--- a/mod_bidi/mod_bidi.lua Sat Aug 03 00:24:12 2013 +0200 +++ b/mod_bidi/mod_bidi.lua Sat Aug 03 00:35:20 2013 +0200 @@ -45,7 +45,7 @@ origin.bidi_session = bidi_session; setmetatable(bidi_session, { __index = origin }); module:fire_event("s2s-authenticated", { session = bidi_session, host = origin.to_host }); - remote_host = origin.to_host; + local remote_host = origin.to_host; add_filter(origin, "stanzas/in", function(stanza) if stanza.attr.xmlns ~= nil then return stanza end local _, host = jid_split(stanza.attr.from);