Software /
code /
verse
Diff
component.lua @ 314:ee5fc3ee9150
component: allow binding to non-host jids (thanks mva)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Aug 2012 19:40:14 +0200 |
parent | 282:52b971d9ebc3 |
child | 400:0db9cb909cf1 |
line wrap: on
line diff
--- a/component.lua Mon Aug 27 00:18:53 2012 +0200 +++ b/component.lua Fri Aug 31 19:40:14 2012 +0200 @@ -123,7 +123,7 @@ function stream:reopen() self:reset(); - self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', + self:send(st.stanza("stream:stream", { to = self.jid, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = xmlns_component, version = "1.0" }):top_tag()); end