mod_offline: Convert to Unix line endings.
[prosody.git] / plugins / mod_uptime.lua
index 2737a9f21e6ff13a880453558368f692fd01f073..cf6c6b64785480f6a5251ab7ecd69b53ccffb479 100644 (file)
@@ -6,10 +6,7 @@
 -- COPYING file in the source package for more information.
 --
 
-local st = require "util.stanza"
-
-local jid_split = require "util.jid".split;
-local t_concat = table.concat;
+local st = require "util.stanza";
 
 local start_time = prosody.start_time;
 prosody.events.add_handler("server-started", function() start_time = prosody.start_time end);
@@ -23,10 +20,3 @@ module:hook("iq/host/jabber:iq:last:query", function(event)
                return true;
        end
 end);
-
-module:hook("iq/bare/jabber:iq:last:query", function(event)
-       local origin, stanza = event.origin, event.stanza;
-       if stanza.attr.type == "get" then
-               -- TODO last activity
-       end
-end);