]> git.pond.sub.org Git - empserver/commit
client: Enable history file by default unless -r
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Dec 2015 08:30:49 +0000 (09:30 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 09:22:30 +0000 (11:22 +0200)
commit2fe38c1acb90bf39934715c9bf581ccbcfb8001e
treebf6820ff377afa38b72c7be5ceed1c8aed09184f
parentde638fd77981daed8882814b08c4444e74733314
client: Enable history file by default unless -r

Make -H take an argument.  Default it to ~/.empire_history, except in
-r restricted mode, where history is off unless you specify -H.
That's because restricted mode restricts the player's access to the
local system, and that includes the history file.  If you want to
grant access to a history file, you have to do so explicitly.

Thanks to the previous commit, there is no need to suppress saving to
~/.empire_history in the test suite.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
man/empire.6
src/client/main.c