Prevent command from executing after game is down

Move the gamedown() check from status to may_play_now() so it is
checked upon login, before a command is executed and after command
completion.  This fixes the situation where a player to could execute
one more command after the game was down.

Report to the deities that the game is down.

Remove to duplicate gamedown message.
This commit is contained in:
Ron Koenderink 2009-02-04 20:53:26 -06:00
parent 48cec49fbf
commit c7e2442d3a
3 changed files with 11 additions and 10 deletions

View file

@ -365,7 +365,6 @@ extern int dispatch(char *, char *);
extern int getcommand(char *);
extern void init_player_commands(void);
extern void log_last_commands(void);
extern int gamedown(void);
extern void update_timeused_login(time_t now);
extern void update_timeused(time_t now);
extern void enforce_minimum_session_time(void);