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
commitf009c36365c7db3d8a298b3e00d4fd850b010e9a (patch)
tree7e10e2c6ec7ca3106a21216b657abc66262d772f /plugins/mod_presence.lua
parentecb98149c9a91e7e14a6e83f6cb2833c395399a9 (diff)
downloadprosody-f009c36365c7db3d8a298b3e00d4fd850b010e9a.tar.gz
prosody-f009c36365c7db3d8a298b3e00d4fd850b010e9a.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;