ddbot.js-0374 3.2.6 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/bot/bot.js +2 -2
package/package.json
CHANGED
package/src/bot/bot.js
CHANGED
|
@@ -401,8 +401,7 @@ class BotManager extends EventEmitter {
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
try {
|
|
404
|
-
const
|
|
405
|
-
const playerMap = new Map(oldList.map(p => [p.client_id, p]));
|
|
404
|
+
const playerMap = new Map();
|
|
406
405
|
|
|
407
406
|
for (let client_id = 0; client_id < 64; client_id++) {
|
|
408
407
|
const clientInfo = client.SnapshotUnpacker.getObjClientInfo(client_id);
|
|
@@ -451,6 +450,7 @@ class BotManager extends EventEmitter {
|
|
|
451
450
|
|
|
452
451
|
// емитим.
|
|
453
452
|
if (client_id !== -1) this.emit(`${botName}:ChatNoSystem`, msgraw, autormsg, text, team, client_id); // все только без системы или сервера
|
|
453
|
+
if (!(client_id == -1 && autormsg == null)) this.emit(`${botName}:ChatNoSystemNoNullNames`, msgraw, autormsg, text, team, client_id);
|
|
454
454
|
this.emit(`${botName}:ChatRaw`, msgraw, autormsg, text, team, client_id); // все сообщения
|
|
455
455
|
});
|
|
456
456
|
|