Mercurial > prosody-hg
comparison plugins/mod_version.lua @ 298:985710ea308b
Small fix for mod_version
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 15 Nov 2008 22:07:31 +0000 |
| parents | f06e97f525bc |
| children | 851f271d25b0 |
comparison
equal
deleted
inserted
replaced
| 297:15b375870b40 | 298:985710ea308b |
|---|---|
| 9 local function handle_version_request(session, stanza) | 9 local function handle_version_request(session, stanza) |
| 10 if stanza.attr.type == "get" then | 10 if stanza.attr.type == "get" then |
| 11 session.send(st.reply(stanza):query(xmlns_version) | 11 session.send(st.reply(stanza):query(xmlns_version) |
| 12 :tag("name"):text("lxmppd"):up() | 12 :tag("name"):text("lxmppd"):up() |
| 13 :tag("version"):text("pre-alpha"):up() | 13 :tag("version"):text("pre-alpha"):up() |
| 14 :tag("os"):text("The best one")); | 14 :tag("os"):text("the best operating system ever!")); |
| 15 end | 15 end |
| 16 end | 16 end |
| 17 | 17 |
| 18 add_iq_handler("c2s", xmlns_version, handle_version_request); | 18 add_iq_handler("c2s", xmlns_version, handle_version_request); |
| 19 add_iq_handler("s2sin", xmlns_version, handle_version_request); | 19 add_iq_handler("s2sin", xmlns_version, handle_version_request); |
