mod_presence: Remove some unused variables
authorMatthew Wild <mwild1@gmail.com>
Wed, 3 Apr 2013 12:39:41 +0000 (13:39 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 3 Apr 2013 12:39:41 +0000 (13:39 +0100)
plugins/mod_presence.lua

index b6e3fc18fda2febb1a1824f2c55b41e9d7b23a5d..8dac2d358a68d8c348a4c7b737785258e7ffdf74 100644 (file)
@@ -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 @@ module:hook("presence/full", function(data)
 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;