Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8337:dc4ea43ac463 | 8338:30d8157391e9 |
---|---|
123 local node = create.attr.node; | 123 local node = create.attr.node; |
124 local ok, ret, reply; | 124 local ok, ret, reply; |
125 local config; | 125 local config; |
126 local configure = stanza.tags[1]:get_child("configure"); | 126 local configure = stanza.tags[1]:get_child("configure"); |
127 if configure then | 127 if configure then |
128 local config_form = config:get_child("x", "jabber:x:data"); | 128 local config_form = configure:get_child("x", "jabber:x:data"); |
129 if not config_form then | 129 if not config_form then |
130 origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing dataform")); | 130 origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing dataform")); |
131 return true; | 131 return true; |
132 end | 132 end |
133 local form_data, err = node_config_form:data(config_form); | 133 local form_data, err = node_config_form:data(config_form); |