Software /
code /
verse
Comparison
plugins/ping.lua @ 147:c95b84ed366b
squishy, plugins.ping, plugins.sasl: Remove xstanza references
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 11 Oct 2010 02:01:50 +0100 |
parent | 41:1a1bd8cd4bdb |
child | 250:a5ac643a7fd6 |
comparison
equal
deleted
inserted
replaced
146:2678048e93e6 | 147:c95b84ed366b |
---|---|
1 require "util.xstanza"; | |
2 | |
3 local xmlns_ping = "urn:xmpp:ping"; | 1 local xmlns_ping = "urn:xmpp:ping"; |
4 | 2 |
5 function verse.plugins.ping(stream) | 3 function verse.plugins.ping(stream) |
6 function stream:ping(jid, callback) | 4 function stream:ping(jid, callback) |
7 local t = socket.gettime(); | 5 local t = socket.gettime(); |