Software /
code /
prosody
Diff
plugins/mod_disco.lua @ 1702:0e56819ee51b
mod_disco: Removed legacy IQ hooks
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 18 Aug 2009 12:42:56 +0500 |
parent | 1701:ceab61010f87 |
child | 1703:b062ee7865fc |
line wrap: on
line diff
--- a/plugins/mod_disco.lua Tue Aug 18 12:39:00 2009 +0500 +++ b/plugins/mod_disco.lua Tue Aug 18 12:42:56 2009 +0500 @@ -12,13 +12,6 @@ module:add_feature("http://jabber.org/protocol/disco#info"); module:add_feature("http://jabber.org/protocol/disco#items"); -module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) - session.send(discomanager_handle(stanza)); -end); -module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza) - session.send(discomanager_handle(stanza)); -end); - module:add_identity("server", "im", "Prosody"); local st = require "util.stanza" module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(event)