diff options
Diffstat (limited to 'internal/game/cmd_verbs.go')
| -rw-r--r-- | internal/game/cmd_verbs.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/game/cmd_verbs.go b/internal/game/cmd_verbs.go index b5b0c3d..6102978 100644 --- a/internal/game/cmd_verbs.go +++ b/internal/game/cmd_verbs.go @@ -277,7 +277,12 @@ func writeCmdLineStrings(sess *net.Session, cmds []string) { } func wrapCmdLines(sess *net.Session, cmds []string, prefix string) { - const width = 70 + width := 70 + if sess.Player != nil { + if w := sess.Player.OptionInt("wrap_width"); w > 0 { + width = w + } + } var current string for _, cmd := range cmds { if current == "" { |
