--- 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