153:56546fb3429b | 154:e7f579d82b76 |
---|---|
13 if opts.stdin then | 13 if opts.stdin then |
14 send_xml = io.read("*a"); | 14 send_xml = io.read("*a"); |
15 end | 15 end |
16 | 16 |
17 local function on_connect(conn) | 17 local function on_connect(conn) |
18 _G.conn = conn | |
18 local print = print; | 19 local print = print; |
19 local function stprint(stanza) | 20 local function stprint(stanza) |
20 if stanza.attr.to == conn.jid then | 21 if stanza.attr.to == conn.jid then |
21 stanza.attr.to = nil; | 22 stanza.attr.to = nil; |
22 end | 23 end |