'banned' emotes

This commit is contained in:
Jiiks 2015-10-27 17:41:46 +02:00
parent d1b9b26050
commit d4ed15be9d
1 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,8 @@ EmoteModule.prototype.getNodes = function(node) {
return nodes;
};
var bemotes = [ "double", "triple", "quadra", "penta" ];
//TODO Functional titles
EmoteModule.prototype.injectEmote = function(node) {
@ -225,6 +227,8 @@ EmoteModule.prototype.injectEmote = function(node) {
if(!words) return;
words.some(function(word) {
if($.inArray(bemotes, word)) return;
if(emotesTwitch.emotes.hasOwnProperty(word)) {
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd + " ><\/img>");