Skip to content
Permalink
Browse files

Fix handlers.

  • Loading branch information...
Shinmera committed Apr 30, 2018
1 parent a524e53 commit 8cf03c168997b8f9201b19a28c503deb789aa10e
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.js
@@ -137,11 +137,11 @@ client.handleFailure = (e)=>{
fail((e instanceof Condition)?e.report():e+"");
};

client.addHandler("DISCONNECT", (client,update)=>{
client.addHandler("DISCONNECT", (update)=>{
fail("Disconnected");
});

client.addHandler("CONNECT", (client,update)=>{
client.addHandler("CONNECT", (update)=>{
stat.style.display = "none";
chat.style.display = "";

@@ -155,7 +155,7 @@ client.addHandler("CONNECT", (client,update)=>{
};
});

client.addHandler("EMOTE", (client,update)=>{
client.addHandler("EMOTE", (update)=>{
addEmoteToUI(":"+update["name"].toLowerCase().replace(/^:|:$/g,"")+":");
});

0 comments on commit 8cf03c1

Please sign in to comment.
You can’t perform that action at this time.