Software /
code /
prosody-modules
Changeset
1125:901e361af918
mod_bidi: Fix accidentally module-global value
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Aug 2013 00:35:20 +0200 |
parents | 1124:689e69df1cc4 |
children | 1126:6fd328b8e136 |
files | mod_bidi/mod_bidi.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);