17 stream_ns = xmlns_stream, |
17 stream_ns = xmlns_stream, |
18 stream_tag = "stream", |
18 stream_tag = "stream", |
19 default_ns = "jabber:client" }; |
19 default_ns = "jabber:client" }; |
20 |
20 |
21 function stream_callbacks.streamopened(stream, attr) |
21 function stream_callbacks.streamopened(stream, attr) |
22 if not stream:event("opened") then |
22 stream.stream_id = attr.id; |
|
23 if not stream:event("opened", attr) then |
23 stream.notopen = nil; |
24 stream.notopen = nil; |
24 end |
25 end |
25 return true; |
26 return true; |
26 end |
27 end |
27 |
28 |