diff -r 000000000000 -r ae83411a89c9 clix/message.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clix/message.lua Wed Jan 06 03:50:37 2010 +0000 @@ -0,0 +1,10 @@ +return function (opts, arg) + if #arg == 0 or opts.help then + return 0; + end + local function on_connect(conn) + conn:send(verse.message({ to = opts.to, type = opts.type or "chat" }):body(table.concat(arg, " "))); + conn:close(); + end + clix_connect(opts, on_connect); +end