Software /
code /
prosody
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 |
parent | 8344:071c0523c4cb |
child | 9226: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; |