Comparison

plugins/ping.lua @ 34:dd5899412e3f

plugins.ping: Return true on module load to indicate load success
author Matthew Wild <mwild1@gmail.com>
date Sun, 20 Dec 2009 21:35:49 +0000
parent 32:391048601d54
child 36:fc2cd2f36cdd
comparison
equal deleted inserted replaced
33:4581b2e61429 34:dd5899412e3f
5 stream:send_iq(verse.iq{ to = jid, type = "get" }:tag("ping", { xmlns = xmlns_ping }), 5 stream:send_iq(verse.iq{ to = jid, type = "get" }:tag("ping", { xmlns = xmlns_ping }),
6 function (reply) 6 function (reply)
7 callback(socket.gettime()-t, jid); 7 callback(socket.gettime()-t, jid);
8 end); 8 end);
9 end 9 end
10 return true;
10 end 11 end