mod_uptime: Removed event hook for iq/bare. mod_uptime only deals with iq/host queries.

Sun, 18 Oct 2009 22:45:41 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 18 Oct 2009 22:45:41 +0500
changeset 2017
347799c9caa6
parent 2016
5d47cfa4b2a0
child 2018
418c04834017

mod_uptime: Removed event hook for iq/bare. mod_uptime only deals with iq/host queries.

plugins/mod_uptime.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_uptime.lua	Sun Oct 18 22:44:18 2009 +0500
+++ b/plugins/mod_uptime.lua	Sun Oct 18 22:45:41 2009 +0500
@@ -20,10 +20,3 @@
 		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);

mercurial