Mercurial > prosody-hg
comparison plugins/mod_uptime.lua @ 8962:6c06bd455bbf
mod_uptime: Depend on mod_adhoc
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 02 Jul 2018 23:42:00 +0200 |
| parents | 071c0523c4cb |
| children | affd84be3fc3 |
comparison
equal
deleted
inserted
replaced
| 8961:5d4ebceaf8aa | 8962:6c06bd455bbf |
|---|---|
| 21 return true; | 21 return true; |
| 22 end | 22 end |
| 23 end); | 23 end); |
| 24 | 24 |
| 25 -- Ad-hoc command | 25 -- Ad-hoc command |
| 26 module:depends "adhoc"; | |
| 26 local adhoc_new = module:require "adhoc".new; | 27 local adhoc_new = module:require "adhoc".new; |
| 27 | 28 |
| 28 function uptime_text() | 29 function uptime_text() |
| 29 local t = os.time()-prosody.start_time; | 30 local t = os.time()-prosody.start_time; |
| 30 local seconds = t%60; | 31 local seconds = t%60; |
