prevent crash when single-message history contains bot command
This commit is contained in:
parent
9c2e2e1f9a
commit
2f4e22482d
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ export default abstract class CollabVMClient {
|
||||||
message.length === 3 &&
|
message.length === 3 &&
|
||||||
!IsSystemChatInstruction(message)
|
!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]);
|
this.OnChat(message[1], message[2]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue