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 e2f7e05014
commit d9d732d683
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.color2) msg.set.color2 = this.settings.color2;
else delete msg.set.color2; // keep it nice and clean
} else {
delete msg.set.color2;
}
}
};