From 6ff1b30f47299861e35162b538e9db6f5c52bf85 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Apr 2016 17:14:58 +0200 Subject: mod_presence: Fix variable name --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 258c5ea4..5e1eb404 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -364,7 +364,7 @@ module:hook("roster-item-removed", function (event) 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; -- cgit v1.2.3