mod_uptime: Removed event hook for iq/bare. mod_uptime only deals with iq/host queries.
authorWaqas Hussain <waqas20@gmail.com>
Sun, 18 Oct 2009 17:45:41 +0000 (22:45 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sun, 18 Oct 2009 17:45:41 +0000 (22:45 +0500)
plugins/mod_uptime.lua

index 5ab97c581a992029124c665aba4e4555907fce46..cf6c6b64785480f6a5251ab7ecd69b53ccffb479 100644 (file)
@@ -20,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);