Missing msg text check for colour util
This commit is contained in:
@@ -317,7 +317,9 @@ function replaceColoursInMessage(messageText) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function removeColoursInMessage(messageText) {
|
function removeColoursInMessage(messageText) {
|
||||||
|
if(messageText == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
for(let i in getServerColours().hex.byName) {
|
for(let i in getServerColours().hex.byName) {
|
||||||
let find = `{${i}}`;
|
let find = `{${i}}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user