Diff

plugins/bind.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 43:a33036b7e5ab
child 160:5cbbfe42212e
line wrap: on
line diff
--- 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