mod_presence: Fix variable name
authorKim Alvefur <zash@zash.se>
Fri, 8 Apr 2016 15:14:58 +0000 (17:14 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 8 Apr 2016 15:14:58 +0000 (17:14 +0200)
plugins/mod_presence.lua

index 258c5ea475f556bd3712ac264b6822baa59c6c70..5e1eb404334f25fed64eec7dbfb12b04d59fcb96 100644 (file)
@@ -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;