clix/bounce.lua

changeset 27
5b58c002d6ad
parent 25
db6e92989c41
equal deleted inserted replaced
26:028c5ffc6d7c 27:5b58c002d6ad
1 short_opts.h = "history"; 1 short_opts.h = "history";
2 2
3 return function (opts, arg) 3 return function (opts, arg)
4 if opts.short_help then
5 print("Bounce received messages to another JID");
6 return;
7 end
4 local function on_connect(conn) 8 local function on_connect(conn)
5 -- Allow selective bouncing 9 -- Allow selective bouncing
6 local only_node, only_server, only_resource; 10 local only_node, only_server, only_resource;
7 if opts.only_from then 11 if opts.only_from then
8 only_node, only_server, only_resource = jid.split(opts.only_from); 12 only_node, only_server, only_resource = jid.split(opts.only_from);

mercurial