Software /
code /
prosody
Comparison
plugins/mod_ping.lua @ 9572:867e40b82409
mod_ping, mod_uptime: Use module:provides
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Oct 2018 17:36:51 +0200 |
parent | 8963:ff522d5db95d |
child | 10399:270cb2821566 |
comparison
equal
deleted
inserted
replaced
9571:5c475f6e89a4 | 9572:867e40b82409 |
---|---|
27 end | 27 end |
28 | 28 |
29 module:depends "adhoc"; | 29 module:depends "adhoc"; |
30 local adhoc_new = module:require "adhoc".new; | 30 local adhoc_new = module:require "adhoc".new; |
31 local descriptor = adhoc_new("Ping", "ping", ping_command_handler); | 31 local descriptor = adhoc_new("Ping", "ping", ping_command_handler); |
32 module:add_item ("adhoc", descriptor); | 32 module:provides("adhoc", descriptor); |
33 | 33 |