plugins/mod_presence.lua
changeset 5416 0ba3a49d3863
parent 5370 7838acadb0fa
child 5776 bd0ff8ae98a8
child 7433 ad0b15f253ee
--- 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;