# HG changeset patch # User Matthew Wild # Date 1364992781 -3600 # Node ID 0ba3a49d3863b4e0a305b494d1b39f8de570794c # Parent 9e7aa5b47bdf93671a4e1ebf65c81163050526a1 mod_presence: Remove some unused variables diff -r 9e7aa5b47bdf -r 0ba3a49d3863 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Wed Apr 03 13:39:00 2013 +0100 +++ b/plugins/mod_presence.lua Wed Apr 03 13:39:41 2013 +0100 @@ -9,7 +9,7 @@ local log = module._log; local require = require; -local pairs, ipairs = pairs, ipairs; +local pairs = pairs; local t_concat, t_insert = table.concat, table.insert; local s_find = string.find; local tonumber = tonumber; @@ -346,7 +346,7 @@ end); module:hook("presence/host", function(data) -- inbound presence to the host - local origin, stanza = data.origin, data.stanza; + local stanza = data.stanza; local from_bare = jid_bare(stanza.attr.from); local t = stanza.attr.type;