From ccb08b40d95bf4078873b9b222550e339dd68467 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 18 Oct 2017 09:23:27 +0200 Subject: mod_pubsub: Use correct variable name [luacheck] --- plugins/mod_pubsub/pubsub.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 49274601..ca9f7c9a 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -125,7 +125,7 @@ function handlers.set_create(origin, stanza, create, service) 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; -- cgit v1.2.3