Software /
code /
prosody
Diff
plugins/mod_vcard.lua @ 541:3521e0851c9e
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.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 20:16:30 +0500 |
parent | 519:cccd610a0ef9 |
child | 549:c0947c0af398 |
line wrap: on
line diff
--- a/plugins/mod_vcard.lua Thu Dec 04 20:07:22 2008 +0500 +++ b/plugins/mod_vcard.lua Thu Dec 04 20:16:30 2008 +0500 @@ -28,7 +28,7 @@ require "util.jid" local jid_split = jid.split; -require "core.discomanager".set("vcard", "vcard-temp"); +module:add_feature("vcard-temp"); module:add_iq_handler({"c2s", "s2sin"}, "vcard-temp", function (session, stanza)