color2 can be anything when creating a new channel

This commit is contained in:
charsyチャーシィ 2021-02-16 11:48:26 -07:00 committed by GitHub
parent 8b289a4bc3
commit 1c8c328c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -421,6 +421,8 @@ class Room extends EventEmitter {
if(this.settings){ if(this.settings){
if(this.settings.color2) msg.set.color2 = this.settings.color2; if(this.settings.color2) msg.set.color2 = this.settings.color2;
else delete msg.set.color2; // keep it nice and clean else delete msg.set.color2; // keep it nice and clean
} else {
delete msg.set.color2;
} }
} }
}; };