Changeset

7345:0c69305ab525

mod_presence: Fix variable name
author Kim Alvefur <zash@zash.se>
date Fri, 08 Apr 2016 17:14:58 +0200
parents 7344:81efa212db1e
children 7348:a8ca12e7c2fb 7349:ad3dce172b01
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;