aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_iq.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 03:39:12 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 03:39:12 +0100
commitc690a13e4023f8ca722cdd5d3340425cd9995e55 (patch)
tree4327ffd87fd6fd0993a164d586ad52b2c0d322b5 /plugins/mod_iq.lua
parentea986bc75ab45fe02ae493b29e330502945643f2 (diff)
downloadprosody-c690a13e4023f8ca722cdd5d3340425cd9995e55.tar.gz
prosody-c690a13e4023f8ca722cdd5d3340425cd9995e55.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.lua8
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