From d9d732d683f05f4d1dd7a5803f80e39338388e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?charsy=E3=83=81=E3=83=A3=E3=83=BC=E3=82=B7=E3=82=A3?= <28523197+Charsy89@users.noreply.github.com> Date: Tue, 16 Feb 2021 11:48:26 -0700 Subject: [PATCH] color2 can be anything when creating a new channel --- src/Room.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Room.js b/src/Room.js index c437341..f319ef8 100644 --- a/src/Room.js +++ b/src/Room.js @@ -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; } } };