Software /
code /
verse
Changeset
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 |
parents | 77:7af3e57501c2 |
children | 79:da06d4996992 |
files | client.lua plugins/bind.lua plugins/session.lua |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client.lua Sun May 30 02:49:58 2010 +0100 +++ b/client.lua Sun May 30 02:54:15 2010 +0100 @@ -101,7 +101,7 @@ self:event("ready"); end self:hook("session-success", stream_ready, -1) - self:hook("binding-success", stream_ready, -1); + self:hook("bind-success", stream_ready, -1); -- Initialise connection self:connect(self.connect_host or self.host, self.connect_port or 5222);
--- a/plugins/bind.lua Sun May 30 02:49:58 2010 +0100 +++ b/plugins/bind.lua Sun May 30 02:54:15 2010 +0100 @@ -14,11 +14,11 @@ :get_text(); stream.username, stream.host, stream.resource = jid.split(result_jid); stream.jid, stream.bound = result_jid, true; - stream:event("binding-success", full_jid); + stream:event("bind-success", full_jid); elseif reply.attr.type == "error" then local err = reply:child_with_name("error"); local type, condition, text = reply:get_error(); - stream:event("binding-failure", { error = condition, text = text, type = type }); + stream:event("bind-failure", { error = condition, text = text, type = type }); end end); end
--- a/plugins/session.lua Sun May 30 02:49:58 2010 +0100 +++ b/plugins/session.lua Sun May 30 02:54:15 2010 +0100 @@ -20,7 +20,7 @@ end); return true; end - stream:hook("binding-success", handle_binding); + stream:hook("bind-success", handle_binding); end end stream:hook("stream-features", handle_features);