Diff

plugins/mod_announce.lua @ 4926:58714123f600

mod_adhoc, mod_admin_adhoc, mod_announce: Use module:provides() to manage Ad-Hoc commands
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 12 Jun 2012 14:29:04 +0200
parent 3278:5ca2ed58788f
child 5014:b2006c1cfa85
line wrap: on
line diff
--- a/plugins/mod_announce.lua	Tue May 29 18:04:29 2012 +0200
+++ b/plugins/mod_announce.lua	Tue Jun 12 14:29:04 2012 +0200
@@ -96,5 +96,5 @@
 
 local adhoc_new = module:require "adhoc".new;
 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin");
-module:add_item("adhoc", announce_desc);
+module:provides("adhoc", announce_desc);