mod_privacy: Remove validation that checks a roster group you block actually exists...
[prosody.git] / plugins / mod_uptime.lua
index 2737a9f21e6ff13a880453558368f692fd01f073..24d101803b860712a03e707624d476f03adfb6d0 100644 (file)
@@ -1,15 +1,12 @@
 -- Prosody IM
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
 -- 
 -- This project is MIT/X11 licensed. Please see the
 -- 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);