Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_disco.lua Wed Nov 26 08:26:24 2008 +0500 +++ b/plugins/mod_disco.lua Wed Nov 26 08:27:09 2008 +0500 @@ -1,6 +1,9 @@ local discomanager_handle = require "core.discomanager".handle; +require "core.discomanager".set("disco", "http://jabber.org/protocol/disco#info"); +require "core.discomanager".set("disco", "http://jabber.org/protocol/disco#items"); + add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) session.send(discomanager_handle(stanza)); end);