aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_iq.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-29 02:10:55 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-29 02:10:55 +0100
commitbd5f9b8cbfd168a21141607218446222ab9d8642 (patch)
treee78baabff21e9b6fefaeef4a709098ca30b35922 /plugins/mod_iq.lua
parent9b89441dd008a8b3fda12d9217ff6f9ba240df9a (diff)
parenta2055895d362fed58ff314820bb7fddd53e40436 (diff)
downloadprosody-bd5f9b8cbfd168a21141607218446222ab9d8642.tar.gz
prosody-bd5f9b8cbfd168a21141607218446222ab9d8642.zip
Merge 0.9->trunk
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