Update ChatFilter.plugin.js

This commit is contained in:
Mirco Wittrien 2018-11-23 20:07:04 +01:00
parent de0836a16e
commit bf6e909211
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class ChatFilter {
getDescription () {return "Allows the user to censor words or block complete messages based on words in the chatwindow.";}
getVersion () {return "3.2.9";}
getVersion () {return "3.3.0";}
getAuthor () {return "DevilBro";}
@ -387,13 +387,13 @@ class ChatFilter {
newstring.push(word);
}
});
strings[i] = newstring.join(" ");
strings[i] = newstring.join(" ").replace(/ ([\?\¿\!\¡\.\"\n]) /g, "$1");
}
});
}
if (censored) {
newhtml = strings.join("").replace(/ ([\?\¿\!\¡\.\"\n]) /g, "$1");
newhtml = strings.join("");
$(message)
.html(newhtml)
.addClass("censored")