message recipient bugfix

This commit is contained in:
Baipyrus 2023-01-21 22:13:29 +01:00
parent 168d42398e
commit 26bd3ddb6f

View File

@ -5,14 +5,14 @@ function runCommand(input) {
return "";
// Exit current level
const modeSplit = chatMode.split(' ')[0];
if (input.toLowerCase().startsWith("exit") && modeSplit !== "default") {
const modeSplit = chatMode.split(' ');
if (input.toLowerCase().startsWith("exit") && modeSplit[0] !== "default") {
cmd_exit();
return "";
}
// Handle different chat modes
switch (modeSplit) {
switch (modeSplit[0]) {
case "msg":
directMessage(modeSplit[1], input);
renameToSelf();