Diff

plugins/mod_presence.lua @ 7345:0c69305ab525

mod_presence: Fix variable name
author Kim Alvefur <zash@zash.se>
date Fri, 08 Apr 2016 17:14:58 +0200
parent 7344:81efa212db1e
child 7433:7eec6f3c7300
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;