Software / code / verse
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 313:d0d378f15d16 | 314:ee5fc3ee9150 |
|---|---|
| 121 self:reopen(); | 121 self:reopen(); |
| 122 end | 122 end |
| 123 | 123 |
| 124 function stream:reopen() | 124 function stream:reopen() |
| 125 self:reset(); | 125 self:reset(); |
| 126 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', | 126 self:send(st.stanza("stream:stream", { to = self.jid, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
| 127 xmlns = xmlns_component, version = "1.0" }):top_tag()); | 127 xmlns = xmlns_component, version = "1.0" }):top_tag()); |
| 128 end | 128 end |
| 129 | 129 |
| 130 function stream:close(reason) | 130 function stream:close(reason) |
| 131 if not self.notopen then | 131 if not self.notopen then |