Comparison

plugins/mod_version.lua @ 517:afd9f6590fd0

lxmppd -> Prosody
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Dec 2008 13:02:23 +0000
parent 438:193f9dd64f17
child 519:cccd610a0ef9
comparison
equal deleted inserted replaced
516:76d17a0d8a0a 517:afd9f6590fd0
8 require "core.discomanager".set("version", xmlns_version); 8 require "core.discomanager".set("version", xmlns_version);
9 9
10 local function handle_version_request(session, stanza) 10 local function handle_version_request(session, stanza)
11 if stanza.attr.type == "get" then 11 if stanza.attr.type == "get" then
12 session.send(st.reply(stanza):query(xmlns_version) 12 session.send(st.reply(stanza):query(xmlns_version)
13 :tag("name"):text("lxmppd"):up() 13 :tag("name"):text("Prosody"):up()
14 :tag("version"):text("pre-alpha"):up() 14 :tag("version"):text("0.1"):up()
15 :tag("os"):text("the best operating system ever!")); 15 :tag("os"):text("the best operating system ever!"));
16 end 16 end
17 end 17 end
18 18
19 module:add_iq_handler("c2s", xmlns_version, handle_version_request); 19 module:add_iq_handler("c2s", xmlns_version, handle_version_request);