This commit is contained in:
Hri7566 2022-07-09 05:24:23 -04:00
parent 49dcd1a0fa
commit cb2b49c8e2
1 changed files with 2 additions and 10 deletions

View File

@ -686,16 +686,8 @@ class Channel extends EventEmitter {
this.setCoords(p, msg.x, msg.y); this.setCoords(p, msg.x, msg.y);
}); });
this.on("a", (msg) => { this.on("a", (participant, msg) => {
if (!msg.msg) return; this.chat(participant, msg);
if (!msg.participant) return;
if (typeof msg.msg !== 'object') return;
if (typeof msg.participant !== 'object') return;
if (!msg.msg.m) return;
if (msg.msg.m !== 'a') return;
if (!msg.participant.name) return;
if (!msg.participant._id) return;
this.chat(msg.participant, msg.msg);
}); });
this.on("update", (cl, set) => { this.on("update", (cl, set) => {