Update ChatFilter.plugin.js
This commit is contained in:
parent
de0836a16e
commit
bf6e909211
|
@ -32,7 +32,7 @@ class ChatFilter {
|
||||||
|
|
||||||
getDescription () {return "Allows the user to censor words or block complete messages based on words in the chatwindow.";}
|
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";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -387,13 +387,13 @@ class ChatFilter {
|
||||||
newstring.push(word);
|
newstring.push(word);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
strings[i] = newstring.join(" ");
|
strings[i] = newstring.join(" ").replace(/ ([\?\¿\!\¡\.\"\n]) /g, "$1");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (censored) {
|
if (censored) {
|
||||||
newhtml = strings.join("").replace(/ ([\?\¿\!\¡\.\"\n]) /g, "$1");
|
newhtml = strings.join("");
|
||||||
$(message)
|
$(message)
|
||||||
.html(newhtml)
|
.html(newhtml)
|
||||||
.addClass("censored")
|
.addClass("censored")
|
||||||
|
|
Loading…
Reference in New Issue