Comparison

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
comparison
equal deleted inserted replaced
4923:760a1f367f02 4926:58714123f600
94 return true; 94 return true;
95 end 95 end
96 96
97 local adhoc_new = module:require "adhoc".new; 97 local adhoc_new = module:require "adhoc".new;
98 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin"); 98 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin");
99 module:add_item("adhoc", announce_desc); 99 module:provides("adhoc", announce_desc);
100 100