aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitf899900fa53a2ca28dc7805971a42e84ae16f974 (patch)
tree1edad97258a2b52c5646aa371fa11fb249d38b97 /plugins
parent4196cca0e08cb9c3404f8b10db51714d1abc0286 (diff)
downloadprosody-f899900fa53a2ca28dc7805971a42e84ae16f974.tar.gz
prosody-f899900fa53a2ca28dc7805971a42e84ae16f974.zip
mod_pubsub: Fix nil access error.
Diffstat (limited to 'plugins')
-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" });