# HG changeset patch # User Matthew Wild # Date 1335580752 -3600 # Node ID 55501fc4394b0cc62e0d34fb239cd71c3b1fa1e4 # Parent c4a0c420d232ea4a94e3d3a466bd4d95c19eed44 mod_iq: Remove unused import of jid.split, bare_sessions and don't unpack event.origin when it isn't used. Waqas. diff -r c4a0c420d232 -r 55501fc4394b plugins/mod_iq.lua --- a/plugins/mod_iq.lua Sat Apr 28 03:34:58 2012 +0100 +++ b/plugins/mod_iq.lua Sat Apr 28 03:39:12 2012 +0100 @@ -8,10 +8,8 @@ local st = require "util.stanza"; -local jid_split = require "util.jid".split; local full_sessions = full_sessions; -local bare_sessions = bare_sessions; if module:get_host_type() == "local" then module:hook("iq/full", function(data) @@ -33,7 +31,7 @@ module:hook("iq/bare", function(data) -- IQ to bare JID recieved - local origin, stanza = data.origin, data.stanza; + local stanza = data.stanza; local type = stanza.attr.type; -- TODO fire post processing events @@ -49,7 +47,7 @@ module:hook("iq/self", function(data) -- IQ to self JID recieved - local origin, stanza = data.origin, data.stanza; + local stanza = data.stanza; local type = stanza.attr.type; if type == "get" or type == "set" then @@ -64,7 +62,7 @@ module:hook("iq/host", function(data) -- IQ to a local host recieved - local origin, stanza = data.origin, data.stanza; + local stanza = data.stanza; local type = stanza.attr.type; if type == "get" or type == "set" then