aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-18 09:23:27 +0200
committerKim Alvefur <zash@zash.se>2017-10-18 09:23:27 +0200
commit3233a819e3b37d15e67c338ec6ad79f8430138cc (patch)
tree783afa176ec415aa60fd29f5358c59a6792ce6e1 /plugins/mod_pubsub
parentc4c07e032b10b4a4b6ccde743508b973fb1891bc (diff)
downloadprosody-3233a819e3b37d15e67c338ec6ad79f8430138cc.tar.gz
prosody-3233a819e3b37d15e67c338ec6ad79f8430138cc.zip
mod_pubsub: Use correct variable name [luacheck]
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
1 files changed, 1 insertions, 1 deletions
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;