clix/roster.lua

changeset 123
c61fadb9d4fa
parent 121
896a25ed6b1b
child 164
fafdcde2e2eb
equal deleted inserted replaced
122:1dfd28db10bd 123:c61fadb9d4fa
1 short_opts.i = "interactive"; 1 short_opts.i = "interactive";
2 local split_jid = require "util.jid".split; 2 local split_jid = require "util.jid".split;
3 local function printor(str) return function() print(str) end end 3 local function printor(str)
4 return function(ok, err)
5 if ok then
6 print(str)
7 else
8 print(err:get_error());
9 end
10 end
11 end
4 12
5 return function (opts, arg) 13 return function (opts, arg)
6 if opts.short_help then 14 if opts.short_help then
7 print("Show or edit your roster"); 15 print("Show or edit your roster");
8 return; 16 return;

mercurial