Software /
code /
prosody
Changeset
9572:867e40b82409
mod_ping, mod_uptime: Use module:provides
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Oct 2018 17:36:51 +0200 |
parents | 9571:5c475f6e89a4 |
children | 9573:57637247356d |
files | plugins/mod_ping.lua plugins/mod_uptime.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_ping.lua Sat Oct 27 17:25:50 2018 +0200 +++ b/plugins/mod_ping.lua Sat Oct 27 17:36:51 2018 +0200 @@ -29,5 +29,5 @@ module:depends "adhoc"; local adhoc_new = module:require "adhoc".new; local descriptor = adhoc_new("Ping", "ping", ping_command_handler); -module:add_item ("adhoc", descriptor); +module:provides("adhoc", descriptor);