Wed, 06 Jan 2010 03:50:37 +0000
Initial commit
0 | 1 | return function (opts, arg) |
2 | if #arg == 0 or opts.help then | |
3 | return 0; | |
4 | end | |
5 | local function on_connect(conn) | |
6 | conn:send(verse.message({ to = opts.to, type = opts.type or "chat" }):body(table.concat(arg, " "))); | |
7 | conn:close(); | |
8 | end | |
9 | clix_connect(opts, on_connect); | |
10 | end |