# HG changeset patch # User Kim Alvefur # Date 1340995949 -7200 # Node ID 8bc27e310e649ecaca3482fb3d3e570206990d36 # Parent 1b4e64176288c565bb5a179ca7cbb49ee214ae36 clix.raw: Add a ping command to the sandbox diff -r 1b4e64176288 -r 8bc27e310e64 clix/raw.lua --- a/clix/raw.lua Fri Jun 29 20:50:01 2012 +0200 +++ b/clix/raw.lua Fri Jun 29 20:52:29 2012 +0200 @@ -44,6 +44,9 @@ m = verse.message, p = verse.presence, iq = verse.iq, + ping = function(host) + return verse.iq{ type="get", to=host}:tag("ping", {xmlns="urn:xmpp:ping"}); + end, }}); local function on_incoming(stdin, data) if not data then