diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 03:39:12 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 03:39:12 +0100 |
commit | a468c4f40f219ded6675bae73b246be278a70585 (patch) | |
tree | 4327ffd87fd6fd0993a164d586ad52b2c0d322b5 /plugins/mod_iq.lua | |
parent | d37a37fb960a96c24de3cc7afd82034c6d1d47c8 (diff) | |
download | prosody-a468c4f40f219ded6675bae73b246be278a70585.tar.gz prosody-a468c4f40f219ded6675bae73b246be278a70585.zip |
mod_iq: Remove unused import of jid.split, bare_sessions and don't unpack event.origin when it isn't used. Waqas.
Diffstat (limited to 'plugins/mod_iq.lua')
-rw-r--r-- | plugins/mod_iq.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua index 484a1f8f..55bf59c3 100644 --- a/plugins/mod_iq.lua +++ b/plugins/mod_iq.lua @@ -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 @@ end 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 @@ end); 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 @@ end); 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 |