26:028c5ffc6d7c | 27:5b58c002d6ad |
---|---|
1 return function (opts, arg) | 1 return function (opts, arg) |
2 if opts.short_help then | |
3 print("Echo received stanzas back to sender"); | |
4 return; | |
5 end | |
2 local function on_connect(conn) | 6 local function on_connect(conn) |
3 local function on_stanza(stanza) | 7 local function on_stanza(stanza) |
4 if stanza.name == "presence" and opts.presence | 8 if stanza.name == "presence" and opts.presence |
5 and not opts.mirror_presence then | 9 and not opts.mirror_presence then |
6 return; | 10 return; |