Software / code / verse
Comparison
client.lua @ 78:f4188eff53a7
verse.client, verse.plugins.bind, verse.plugins.session: Rename binding-success and binding-failure to bind-success and bind-failure for consistency
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 30 May 2010 02:54:15 +0100 |
| parent | 76:927167321283 |
| child | 81:0924a3d05e40 |
comparison
equal
deleted
inserted
replaced
| 77:7af3e57501c2 | 78:f4188eff53a7 |
|---|---|
| 99 | 99 |
| 100 local function stream_ready() | 100 local function stream_ready() |
| 101 self:event("ready"); | 101 self:event("ready"); |
| 102 end | 102 end |
| 103 self:hook("session-success", stream_ready, -1) | 103 self:hook("session-success", stream_ready, -1) |
| 104 self:hook("binding-success", stream_ready, -1); | 104 self:hook("bind-success", stream_ready, -1); |
| 105 | 105 |
| 106 -- Initialise connection | 106 -- Initialise connection |
| 107 self:connect(self.connect_host or self.host, self.connect_port or 5222); | 107 self:connect(self.connect_host or self.host, self.connect_port or 5222); |
| 108 self:reopen(); | 108 self:reopen(); |
| 109 end | 109 end |