Software /
code /
prosody
Diff
plugins/mod_presence.lua @ 5416:0ba3a49d3863
mod_presence: Remove some unused variables
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 03 Apr 2013 13:39:41 +0100 |
parent | 5370:7838acadb0fa |
child | 5776:bd0ff8ae98a8 |
child | 7430:ad0b15f253ee |
line wrap: on
line diff
--- 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;