Diff

plugins/mod_pubsub/pubsub.lib.lua @ 8338:30d8157391e9

mod_pubsub: Use correct variable name [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 18 Oct 2017 09:23:27 +0200
parent 8337:dc4ea43ac463
child 8340:7c1fb8c042dc
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Wed Oct 18 09:08:16 2017 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Wed Oct 18 09:23:27 2017 +0200
@@ -125,7 +125,7 @@
 	local config;
 	local configure = stanza.tags[1]:get_child("configure");
 	if configure then
-		local config_form = config:get_child("x", "jabber:x:data");
+		local config_form = configure:get_child("x", "jabber:x:data");
 		if not config_form then
 			origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing dataform"));
 			return true;