Mercurial > prosody-modules
comparison mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 4645:25ce28711fac
mod_pubsub_text_interface: Move quick response out of unknown command text
Same as previous commit.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 13 Aug 2021 01:06:15 +0200 |
parents | bbf9e36db3a9 |
children | d7652471ae3e |
comparison
equal
deleted
inserted
replaced
4644:bbf9e36db3a9 | 4645:25ce28711fac |
---|---|
79 [from] = { ["pubsub#include_body"] = true } | 79 [from] = { ["pubsub#include_body"] = true } |
80 }, item, nil, pubsub.nodes[node_arg]); | 80 }, item, nil, pubsub.nodes[node_arg]); |
81 reply:body("OK"); | 81 reply:body("OK"); |
82 end | 82 end |
83 else | 83 else |
84 reply:body("Unknown command. `help` to list commands."); | 84 reply:body("Unknown command. `help` to list commands."):up(); |
85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up(); | 85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up(); |
86 end | 86 end |
87 reply:reset(); | 87 reply:reset(); |
88 | 88 |
89 if stanza:get_child("no-copy", "urn:xmpp:hints") then | 89 if stanza:get_child("no-copy", "urn:xmpp:hints") then |