Diff

plugins/mod_pubsub.lua @ 4795:8a105eb8aeae

mod_pubsub.lua: Fix global access
author Kim Alvefur <zash@zash.se>
date Tue, 24 Apr 2012 21:42:26 +0200
parent 4343:203137823046
child 5014:b2006c1cfa85
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Tue Apr 24 21:37:20 2012 +0200
+++ b/plugins/mod_pubsub.lua	Tue Apr 24 21:42:26 2012 +0200
@@ -57,6 +57,7 @@
 	for _, entry in pairs(results) do
 		data:add_child(entry);
 	end
+	local reply;
 	if data then
 		reply = st.reply(stanza)
 			:tag("pubsub", { xmlns = xmlns_pubsub })