aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 02:29:55 -0400
committerhistoria <[not public]>2026-06-27 02:29:55 -0400
commit6f3d21d6e7f01155ce0c461857a053b43d329392 (patch)
tree51e96b62deb5f99a3d70c3a15ab94c520a1ee8e8 /internal/game/game.go
parent3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (diff)
downloadthehouseoficarus-6f3d21d6e7f01155ce0c461857a053b43d329392.tar.gz
feat: recall/home cmd, line break option
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index 3cfd811..22dd74d 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -190,6 +190,10 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) {
return
}
+ if sess.Player.OptionString("prompt_break") == "off" {
+ sess.ClearPrompt()
+ }
+
if sess.Account != nil && sess.Account.Aliases != nil {
firstSpace := strings.Index(input, " ")
var firstWord, rest string