# HG changeset patch # User Kim Alvefur # Date 1508311407 -7200 # Node ID 30d8157391e9633d1c0bd6f87624ca7ef5e4761d # Parent dc4ea43ac4630c3b20652806bcf33c292811cf17 mod_pubsub: Use correct variable name [luacheck] diff -r dc4ea43ac463 -r 30d8157391e9 plugins/mod_pubsub/pubsub.lib.lua --- 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;