Software /
code /
verse
Comparison
plugins/ping.lua @ 339:72fbfb0367e9
plugins.ping: Reply to pings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 May 2013 18:42:13 +0200 |
parent | 250:a5ac643a7fd6 |
child | 380:0891b4e27766 |
comparison
equal
deleted
inserted
replaced
338:957704bbe9a1 | 339:72fbfb0367e9 |
---|---|
15 end | 15 end |
16 end | 16 end |
17 callback(socket.gettime()-t, jid); | 17 callback(socket.gettime()-t, jid); |
18 end); | 18 end); |
19 end | 19 end |
20 stream:hook("iq/"..xmlns_ping, function(stanza) | |
21 return stream:send(verse.reply(stanza)); | |
22 end); | |
20 return true; | 23 return true; |
21 end | 24 end |