Start working on emotes

This commit is contained in:
calzoneman 2014-02-09 23:53:46 -06:00
parent 0f9bfe1429
commit 53138fe1f0
5 changed files with 209 additions and 2 deletions

View file

@ -1032,7 +1032,31 @@ Callbacks = {
}
}
}
}
},
emoteList: function (data) {
loadEmotes(data);
},
updateEmote: function (data) {
data.regex = new RegExp(data.source, "gi");
var found = false;
for (var i = 0; i < CHANNEL.emotes.length; i++) {
if (CHANNEL.emotes[i].name === data.name) {
found = true;
CHANNEL.emotes[i] = data;
break;
}
}
if (!found) {
CHANNEL.emotes.push(data);
}
},
deleteEmote: function (data) {
},
}
var SOCKET_DEBUG = true;