forked from Hri7566/mpp-server-dev2
admin chat fix
This commit is contained in:
parent
0a11e8bd9e
commit
d0941ff3a2
|
@ -396,7 +396,7 @@ class Channel extends EventEmitter {
|
||||||
|
|
||||||
message.m = "a";
|
message.m = "a";
|
||||||
message.t = Date.now();
|
message.t = Date.now();
|
||||||
message.a = msg.message.test;
|
message.a = msg.message;
|
||||||
|
|
||||||
message.p = {
|
message.p = {
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
|
@ -496,8 +496,8 @@ class Channel extends EventEmitter {
|
||||||
case "!channellist":
|
case "!channellist":
|
||||||
if (!isAdmin) return;
|
if (!isAdmin) return;
|
||||||
this.adminChat("Channels:");
|
this.adminChat("Channels:");
|
||||||
for (let ch of this.server.rooms) {
|
for (let [_id] of this.server.rooms) {
|
||||||
this.adminChat(`- ${ch._id}`);
|
this.adminChat(`- ${_id}`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue