Mercurial > prosody-modules
comparison mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 3644:9980ea72ff91
mod_pubsub_text_interface: Respond to receipts
Because why not?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Aug 2019 19:01:58 +0200 |
parents | 33b3f02a9e7d |
children | cb5ea9d25cb2 |
comparison
equal
deleted
inserted
replaced
3643:740870196b97 | 3644:9980ea72ff91 |
---|---|
76 reply:body("OK"); | 76 reply:body("OK"); |
77 end | 77 end |
78 else | 78 else |
79 reply:body("Unknown command. `help` to list commands."); | 79 reply:body("Unknown command. `help` to list commands."); |
80 end | 80 end |
81 reply:reset(); | |
82 | |
83 if stanza:get_child("request", "urn:xmpp:receipts") then | |
84 reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up(); | |
85 end | |
86 | |
81 module:send(reply); | 87 module:send(reply); |
82 return true; | 88 return true; |
83 end); | 89 end); |