Software /
code /
prosody
Comparison
plugins/mod_disco.lua @ 421:63be85693710
Modules now sending disco replies
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 08:27:09 +0500 |
parent | 389:c747d6963d95 |
child | 438:193f9dd64f17 |
comparison
equal
deleted
inserted
replaced
420:aa1db0a80089 | 421:63be85693710 |
---|---|
1 | 1 |
2 local discomanager_handle = require "core.discomanager".handle; | 2 local discomanager_handle = require "core.discomanager".handle; |
3 | |
4 require "core.discomanager".set("disco", "http://jabber.org/protocol/disco#info"); | |
5 require "core.discomanager".set("disco", "http://jabber.org/protocol/disco#items"); | |
3 | 6 |
4 add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) | 7 add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) |
5 session.send(discomanager_handle(stanza)); | 8 session.send(discomanager_handle(stanza)); |
6 end); | 9 end); |
7 add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza) | 10 add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza) |