aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
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;