Change modules to use the new add_feature module API method.

This also fixes the bug causing disco features being added to every disco reply for every host.
This commit is contained in:
Waqas Hussain 2008-12-04 20:16:30 +05:00
parent fcf33a735b
commit 2d2414f199
10 changed files with 12 additions and 12 deletions

View file

@ -25,7 +25,7 @@ local legacy = require "util.datetime".legacy;
-- XEP-0202: Entity Time
require "core.discomanager".set("time", "urn:xmpp:time");
module:add_feature("urn:xmpp:time");
module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:time",
function(session, stanza)
@ -38,7 +38,7 @@ module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:time",
-- XEP-0090: Entity Time (deprecated)
require "core.discomanager".set("time", "jabber:iq:time");
module:add_feature("jabber:iq:time");
module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:time",
function(session, stanza)