Diff

plugins/mod_pubsub.lua @ 5313:3d63f5236464

mod_pubsub: Fix nil access error.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 26 Jan 2013 03:49:45 +0500
parent 5312:fdcd2ac7c22d
child 5314:e5e480d73066
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Fri Jan 25 01:32:14 2013 +0100
+++ b/plugins/mod_pubsub.lua	Sat Jan 26 03:49:45 2013 +0500
@@ -318,7 +318,7 @@
 	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" });