Software /
code /
prosody
Comparison
plugins/mod_version.lua @ 421:63be85693710
Modules now sending disco replies
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 08:27:09 +0500 |
parent | 314:851f271d25b0 |
child | 438:193f9dd64f17 |
comparison
equal
deleted
inserted
replaced
420:aa1db0a80089 | 421:63be85693710 |
---|---|
2 local st = require "util.stanza"; | 2 local st = require "util.stanza"; |
3 | 3 |
4 local log = require "util.logger".init("mod_version"); | 4 local log = require "util.logger".init("mod_version"); |
5 | 5 |
6 local xmlns_version = "jabber:iq:version" | 6 local xmlns_version = "jabber:iq:version" |
7 | |
8 require "core.discomanager".set("version", xmlns_version); | |
7 | 9 |
8 local function handle_version_request(session, stanza) | 10 local function handle_version_request(session, stanza) |
9 if stanza.attr.type == "get" then | 11 if stanza.attr.type == "get" then |
10 session.send(st.reply(stanza):query(xmlns_version) | 12 session.send(st.reply(stanza):query(xmlns_version) |
11 :tag("name"):text("lxmppd"):up() | 13 :tag("name"):text("lxmppd"):up() |