76:aa672fc46be1 | 77:22be057cf590 |
---|---|
15 else | 15 else |
16 print("From ".. bare_jid(a.from)); | 16 print("From ".. bare_jid(a.from)); |
17 end | 17 end |
18 print(m:get_child_text"body"); | 18 print(m:get_child_text"body"); |
19 print""; | 19 print""; |
20 end | |
21 | |
22 print"opts" | |
23 for k,v in pairs(opts) do | |
24 print("",k,v) | |
25 end | 20 end |
26 | 21 |
27 local function on_connect(conn) | 22 local function on_connect(conn) |
28 if opts.debug then | 23 if opts.debug then |
29 conn:hook("stanza-out", print); | 24 conn:hook("stanza-out", print); |