# HG changeset patch # User Kim Alvefur # Date 1368290533 -7200 # Node ID 72fbfb0367e998a7e071f2ff844dc64816cf6926 # Parent 957704bbe9a1489a2af41b9465d67dd73f400c72 plugins.ping: Reply to pings diff -r 957704bbe9a1 -r 72fbfb0367e9 plugins/ping.lua --- 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