# HG changeset patch # User Matthew Wild # Date 1275184455 -3600 # Node ID f4188eff53a7d5de58b7f8bc9c489772d45c58ed # Parent 7af3e57501c2c5c6d6a39c17faa6fbc83f0e4499 verse.client, verse.plugins.bind, verse.plugins.session: Rename binding-success and binding-failure to bind-success and bind-failure for consistency diff -r 7af3e57501c2 -r f4188eff53a7 client.lua --- 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); diff -r 7af3e57501c2 -r f4188eff53a7 plugins/bind.lua --- 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 diff -r 7af3e57501c2 -r f4188eff53a7 plugins/session.lua --- 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);