admin chat fix

This commit is contained in:
Hri7566 2022-07-03 18:46:05 -04:00
parent 609e05b902
commit 3feda753df
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}