Software /
code /
prosody
Comparison
plugins/mod_uptime.lua @ 1495:6c745a108e68
mod_uptime: Use time of server start rather than module load
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Jul 2009 04:22:45 +0100 |
parent | 1494:bdfa5274e111 |
child | 1523:841d61be198f |
comparison
equal
deleted
inserted
replaced
1494:bdfa5274e111 | 1495:6c745a108e68 |
---|---|
11 local st = require "util.stanza" | 11 local st = require "util.stanza" |
12 | 12 |
13 local jid_split = require "util.jid".split; | 13 local jid_split = require "util.jid".split; |
14 local t_concat = table.concat; | 14 local t_concat = table.concat; |
15 | 15 |
16 local start_time = os.time(); | 16 local start_time = prosody.start_time; |
17 | 17 |
18 module:add_feature("jabber:iq:last"); | 18 module:add_feature("jabber:iq:last"); |
19 | 19 |
20 module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last", | 20 module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last", |
21 function (origin, stanza) | 21 function (origin, stanza) |