Software / code / prosody-modules
Comparison
mod_rest/jsonmap.lib.lua @ 3855:0e1e900577c4
mod_rest: Improve some comments
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 25 Jan 2020 00:43:28 +0100 |
| parent | 3854:25c34c9f755c |
| child | 3856:8bdb1729529b |
comparison
equal
deleted
inserted
replaced
| 3854:25c34c9f755c | 3855:0e1e900577c4 |
|---|---|
| 36 return xml.parse([[<html xmlns='http://jabber.org/protocol/xhtml-im'>]]..s..[[</html>]]); | 36 return xml.parse([[<html xmlns='http://jabber.org/protocol/xhtml-im'>]]..s..[[</html>]]); |
| 37 end | 37 end |
| 38 end; | 38 end; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 -- XEP-0199 | 41 -- XEP-0199: XMPP Ping |
| 42 ping = {"bool_tag", "urn:xmpp:ping", "ping"}, | 42 ping = {"bool_tag", "urn:xmpp:ping", "ping"}, |
| 43 | 43 |
| 44 -- XEP-0092: Software Version | 44 -- XEP-0092: Software Version |
| 45 version = {"func", "jabber:iq:version", "query", | 45 version = {"func", "jabber:iq:version", "query", |
| 46 function (s) | 46 function (s) |
| 118 end | 118 end |
| 119 return disco; | 119 return disco; |
| 120 end; | 120 end; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 -- XEP-0066: Out of Band Data | |
| 123 oob_url = {"func", "jabber:iq:oob", "query", | 124 oob_url = {"func", "jabber:iq:oob", "query", |
| 124 function (s) | 125 function (s) |
| 125 return s:get_child_text("url"); | 126 return s:get_child_text("url"); |
| 126 end; | 127 end; |
| 127 function (s) | 128 function (s) |