1) Allow admin to define some commands that are run when something happens.
format is
commands [ <time> ] = <command> ...
<time> can be one of:
login = when user logs in
dglstart = when someone telnets in
register = when a new user is registered
gamestart = when a game is started
<command> is:
mkdir "foo" = creates a directory "foo"
chdir "foo" = changes current work dir to "foo"
cp "foo" "bar" = copies file "foo" to "bar"
unlink "foo" = deletes file "foo"
setenv "foo "bar" = sets environment variable "foo" to "bar"
For example
commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo"
You can also define per-game commands that are executed when
the game is started.
2) Defining game info in the config file has changed slightly.
Put "DEFINE { ... }" around the game-specific stuff.
See the example config file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@391 db0b04b0-f4d1-0310-9a6d-de3e77497b0e