aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-08 17:14:58 +0200
committerKim Alvefur <zash@zash.se>2016-04-08 17:14:58 +0200
commit6ff1b30f47299861e35162b538e9db6f5c52bf85 (patch)
tree7e10e2c6ec7ca3106a21216b657abc66262d772f /plugins/mod_presence.lua
parent0c4b70fe8f56d40843d6a7f5123412ab1f09c3df (diff)
downloadprosody-6ff1b30f47299861e35162b538e9db6f5c52bf85.tar.gz
prosody-6ff1b30f47299861e35162b538e9db6f5c52bf85.zip
mod_presence: Fix variable name
Diffstat (limited to 'plugins/mod_presence.lua')
-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;