# HG changeset patch # User Waqas Hussain # Date 1250581376 -18000 # Node ID 0e56819ee51b64e1560b8ccc9285e7bcdf7ec0ab # Parent ceab61010f8727c3aa26a996b7beb9ce0f57faed mod_disco: Removed legacy IQ hooks diff -r ceab61010f87 -r 0e56819ee51b plugins/mod_disco.lua --- 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)