220 end |
220 end |
221 |
221 |
222 function stream:reopen() |
222 function stream:reopen() |
223 self:reset(); |
223 self:reset(); |
224 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
224 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
225 xmlns = "jabber:client", version = "1.0" }):top_tag()); |
225 xmlns = "jabber:client", version = "1.0", ["xml:lang"] = self.lang }):top_tag()); |
226 end |
226 end |
227 |
227 |
228 function stream:send_iq(iq, callback) |
228 function stream:send_iq(iq, callback) |
229 local id = iq.attr.id or uuid.generate(); |
229 local id = iq.attr.id or uuid.generate(); |
230 self.tracked_iqs[id] = callback; |
230 self.tracked_iqs[id] = callback; |