equal
deleted
inserted
replaced
260 local attr = { |
260 local attr = { |
261 ["xmlns:stream"] = "http://etherx.jabber.org/streams", |
261 ["xmlns:stream"] = "http://etherx.jabber.org/streams", |
262 ["xml:lang"] = "en", |
262 ["xml:lang"] = "en", |
263 xmlns = stream_callbacks.default_ns, |
263 xmlns = stream_callbacks.default_ns, |
264 version = session.version and (session.version > 0 and "1.0" or nil), |
264 version = session.version and (session.version > 0 and "1.0" or nil), |
265 id = session.streamid, |
265 id = session.streamid or "", |
266 from = from or session.host, to = to, |
266 from = from or session.host, to = to, |
267 }; |
267 }; |
268 if session.stream_attrs then |
268 if session.stream_attrs then |
269 session:stream_attrs(from, to, attr) |
269 session:stream_attrs(from, to, attr) |
270 end |
270 end |