Diff

plugins/mod_roster.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 609:64849cfa9869
line wrap: on
line diff
--- a/plugins/mod_roster.lua	Thu Dec 04 20:07:22 2008 +0500
+++ b/plugins/mod_roster.lua	Thu Dec 04 20:16:30 2008 +0500
@@ -29,7 +29,7 @@
 local rm_add_to_roster = require "core.rostermanager".add_to_roster;
 local rm_roster_push = require "core.rostermanager".roster_push;
 
-require "core.discomanager".set("roster", "jabber:iq:roster");
+module:add_feature("jabber:iq:roster");
 
 module:add_iq_handler("c2s", "jabber:iq:roster", 
 		function (session, stanza)