--- a/plugins/ping.lua Fri May 10 12:19:57 2013 +0200
+++ b/plugins/ping.lua Sat May 11 18:42:13 2013 +0200
@@ -17,5 +17,8 @@
callback(socket.gettime()-t, jid);
end);
end
+ stream:hook("iq/"..xmlns_ping, function(stanza)
+ return stream:send(verse.reply(stanza));
+ end);
return true;
end