Mercurial > prosody-hg
comparison plugins/mod_uptime.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Mar 2023 13:15:28 +0100 |
| parents | abbdf72b0710 |
| children |
comparison
equal
deleted
inserted
replaced
| 12976:a187600ec7d6 | 12977:74b9e05af71e |
|---|---|
| 4 -- | 4 -- |
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | 8 |
| 9 local st = require "util.stanza"; | 9 local st = require "prosody.util.stanza"; |
| 10 | 10 |
| 11 local start_time = prosody.start_time; | 11 local start_time = prosody.start_time; |
| 12 module:hook_global("server-started", function() start_time = prosody.start_time end); | 12 module:hook_global("server-started", function() start_time = prosody.start_time end); |
| 13 | 13 |
| 14 -- XEP-0012: Last activity | 14 -- XEP-0012: Last activity |
