11 |
11 |
12 local init_xmlhandlers = require "core.xmlhandlers"; |
12 local init_xmlhandlers = require "core.xmlhandlers"; |
13 |
13 |
14 local xmlns_stream = "http://etherx.jabber.org/streams"; |
14 local xmlns_stream = "http://etherx.jabber.org/streams"; |
15 |
15 |
16 local stream_callbacks = { stream_tag = xmlns_stream.."\1stream", |
16 local stream_callbacks = { |
17 default_ns = "jabber:client" }; |
17 stream_ns = xmlns_stream, |
|
18 stream_tag = "stream", |
|
19 default_ns = "jabber:client" }; |
18 |
20 |
19 function stream_callbacks.streamopened(stream, attr) |
21 function stream_callbacks.streamopened(stream, attr) |
20 if not stream:event("opened") then |
22 if not stream:event("opened") then |
21 stream.notopen = nil; |
23 stream.notopen = nil; |
22 end |
24 end |