From 3feda753dff76d6881a9218d715025ac13d4b4ca Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sun, 3 Jul 2022 18:46:05 -0400 Subject: [PATCH] admin chat fix --- src/Channel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Channel.js b/src/Channel.js index 664b7f7..0ecea73 100644 --- a/src/Channel.js +++ b/src/Channel.js @@ -396,7 +396,7 @@ class Channel extends EventEmitter { message.m = "a"; message.t = Date.now(); - message.a = msg.message.test; + message.a = msg.message; message.p = { color: "#ffffff", @@ -496,8 +496,8 @@ class Channel extends EventEmitter { case "!channellist": if (!isAdmin) return; this.adminChat("Channels:"); - for (let ch of this.server.rooms) { - this.adminChat(`- ${ch._id}`); + for (let [_id] of this.server.rooms) { + this.adminChat(`- ${_id}`); } break; }