fix(?) backslash crashing the vm
This commit is contained in:
parent
888a4ef01c
commit
bb30a52357
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ class HelperBot extends CollabVMClient {
|
|||
if (username == this.GetUsername()) return;
|
||||
|
||||
if (message[0] === config.BOT_PREFIX) {
|
||||
this.HandleCommands(username, message);
|
||||
this.HandleCommands(username, message.replaceAll("\\", "\\\\")); // thanks js
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -296,7 +296,7 @@ class HelperBot extends CollabVMClient {
|
|||
if (message.indexOf(" ") !== -1)
|
||||
command = message.slice(1, message.indexOf(" "));
|
||||
else command = message.slice(1);
|
||||
|
||||
|
||||
switch (command) {
|
||||
case "help":
|
||||
if (!DoLimit(this.GeneralCmdLimit!)) return;
|
||||
|
|
Loading…
Reference in a new issue