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 "util.stanza"; |
10 |
|
11 local jid_split = require "util.jid".split; |
|
12 local t_concat = table.concat; |
|
13 |
10 |
14 local start_time = prosody.start_time; |
11 local start_time = prosody.start_time; |
15 prosody.events.add_handler("server-started", function() start_time = prosody.start_time end); |
12 prosody.events.add_handler("server-started", function() start_time = prosody.start_time end); |
16 |
13 |
17 module:add_feature("jabber:iq:last"); |
14 module:add_feature("jabber:iq:last"); |