prevent crash when single-message history contains bot command

This commit is contained in:
Elijah R 2024-06-23 22:03:46 -04:00
parent 9c2e2e1f9a
commit 2f4e22482d

View file

@ -148,7 +148,7 @@ export default abstract class CollabVMClient {
message.length === 3 &&
!IsSystemChatInstruction(message)
) {
if (message[1] != this._username) {
if (message[1] != this._username && this._users.some(u => u.GetName() === message[1])) {
this.OnChat(message[1], message[2]);
return;
}