File perms

This commit is contained in:
Kim Ravn Hansen
2025-10-15 12:28:14 +02:00
parent e12dfd0981
commit 59d73955d0
21 changed files with 202 additions and 111 deletions

View File

@@ -174,15 +174,15 @@ class MudServer {
const msgObj = new WebsocketMessage(data.toString());
//
// Handle replies to prompts. The main workhorse of the game.
// Route reply-messages to the current scene
if (msgObj.isReply()) {
return session.scene.prompt.onReply(msgObj.text);
return session.scene.onReply(msgObj);
}
//
// Handle :help commands
if (msgObj.isHelp()) {
return session.scene.prompt.onHelp(msgObj.text);
return session.scene.onHelp(msgObj);
}
//
@@ -196,7 +196,7 @@ class MudServer {
//
// Handle any text that starts with ":" that isn't :help or :quit
if (msgObj.isColon()) {
return session.scene.prompt.onColon(msgObj.command, msgObj.args);
return session.scene.onColon(msgObj);
}
//