# gamestart = just before 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", overwriting previous "bar"
-# ifnxcp "foo" "bar" = copies file "foo" to "bar", if "bar" doesn't exist
-# unlink "foo" = deletes file "foo"
-# setenv "foo "bar" = sets environment variable "foo" to "bar"
-# exec "foo" "bar" = execute "foo" with "bar" as it's param
-# chpasswd = do the change password prompting, if logged in
-# chmail = do the change email prompting, if logged in
-# watch_menu = go to the watching menu
-# quit = quit dgl
-# ask_login = do the login prompting, if not logged in
-# ask_register = do register new user prompting, if not logged in and
-# registration of new nicks is allowed.
+# mkdir "foo" = create a directory "foo"
+# chdir "foo" = change current work dir to "foo"
+# cp "foo" "bar" = copy file "foo" to "bar", overwriting previous "bar"
+# ifnxcp "foo" "bar" = copy file "foo" to "bar", if "bar" doesn't exist
+# unlink "foo" = delete file "foo"
+# setenv "foo" "bar" = set environment variable "foo" to "bar"
+# exec "foo" "bar" = execute "foo" with "bar" as it's param
+# chpasswd = do the change password prompting, if logged in
+# chmail = do the change email prompting, if logged in
+# watch_menu = go to the watching menu
+# quit = quit dgl
+# ask_login = do the login prompting, if not logged in
+# ask_register = do register new user prompting, if not logged in and
+# registration of new nicks is allowed.
# edit_options "foo" = edit options for game which has the short name "foo"
# (user must be logged in)
-# play_game "foo" = start game which has the short name "foo"
-# (user must be logged in)
-# submenu "foo" = go to submenu "foo"
-# return = return from submenu
+# play_game "foo" = start game which has the short name "foo"
+# (user must be logged in)
+# submenu "foo" = go to submenu "foo"
+# return = return from submenu
#
# The commands will be done inside the chroot and with the uid and gid
# defined above.
# Parameters to the commands are subject to variable substitution:
# %r = dglroot, as defined above
# %n = user nick, if user is logged in
-# %u = shed_uid, as defined above, but number
+# %u = shed_uid, as defined above, but numeric
# %g = game name, if user has selected a game.
#
# eg. commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo"