# HG changeset patch # User Kim Alvefur # Date 1460128498 -7200 # Node ID 0c69305ab525096c23efb17a02ef377f15385217 # Parent 81efa212db1e28f6987048db1e0996c6443943fc mod_presence: Fix variable name diff -r 81efa212db1e -r 0c69305ab525 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Fri Apr 08 16:35:23 2016 +0200 +++ b/plugins/mod_presence.lua Fri Apr 08 17:14:58 2016 +0200 @@ -364,7 +364,7 @@ local roster = event.roster or session and session.roster; local jid = event.jid; local item = event.item; - local from_jid = origin.full_jid or (username .. "@" .. module.host); + local from_jid = session.full_jid or (username .. "@" .. module.host); local subscription = item and item.subscription or "none"; local ask = item and item.ask;