message recipient bugfix
This commit is contained in:
parent
168d42398e
commit
26bd3ddb6f
@ -5,14 +5,14 @@ function runCommand(input) {
|
|||||||
return "";
|
return "";
|
||||||
|
|
||||||
// Exit current level
|
// Exit current level
|
||||||
const modeSplit = chatMode.split(' ')[0];
|
const modeSplit = chatMode.split(' ');
|
||||||
if (input.toLowerCase().startsWith("exit") && modeSplit !== "default") {
|
if (input.toLowerCase().startsWith("exit") && modeSplit[0] !== "default") {
|
||||||
cmd_exit();
|
cmd_exit();
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle different chat modes
|
// Handle different chat modes
|
||||||
switch (modeSplit) {
|
switch (modeSplit[0]) {
|
||||||
case "msg":
|
case "msg":
|
||||||
directMessage(modeSplit[1], input);
|
directMessage(modeSplit[1], input);
|
||||||
renameToSelf();
|
renameToSelf();
|
||||||
|
Loading…
Reference in New Issue
Block a user