clix/roster.lua

changeset 58
d5d9f7dffc1f
parent 57
830baad98c9a
child 59
46cb6e772e31
equal deleted inserted replaced
57:830baad98c9a 58:d5d9f7dffc1f
105 if not roster then 105 if not roster then
106 print("There was an error fetching your roster"); 106 print("There was an error fetching your roster");
107 conn:close() 107 conn:close()
108 end 108 end
109 109
110 local firstcmd = commands[arg[1] or "list"];
111 if firstcmd then
112 firstcmd(table.concat(arg, " ", 2, #arg))
113 end
114 if not opts.interactive then 110 if not opts.interactive then
111 local firstcmd = commands[arg[1] or "list"];
112 if firstcmd then
113 firstcmd(table.concat(arg, " ", 2, #arg))
114 end
115 conn:close(); 115 conn:close();
116 end 116 end
117 end); 117 end);
118 local function notif(e) 118 local function notif(e)
119 return function(item) 119 return function(item)

mercurial