aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-01-26 03:49:45 +0500
committerWaqas Hussain <waqas20@gmail.com>2013-01-26 03:49:45 +0500
commit082578c353742ca2ff6ccad9263483170914931e (patch)
tree1edad97258a2b52c5646aa371fa11fb249d38b97
parent75ef4319b9df8318842565cd34d3e9c8927b7f77 (diff)
downloadprosody-082578c353742ca2ff6ccad9263483170914931e.tar.gz
prosody-082578c353742ca2ff6ccad9263483170914931e.zip
mod_pubsub: Fix nil access error.
-rw-r--r--plugins/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index 56fabaec..d39ba0fa 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -318,7 +318,7 @@ module:hook("iq-get/host/http://jabber.org/protocol/disco#items:query", function
end
local ok, ret = service:get_nodes(event.stanza.attr.from);
if not ok then
- event.origin.send(pubsub_error_reply(stanza, ret));
+ event.origin.send(pubsub_error_reply(event.stanza, ret));
else
local reply = st.reply(event.stanza)
:tag("query", { xmlns = "http://jabber.org/protocol/disco#items" });