Factor out gamehours and max minutes per day checks
Combine the checks from player_main(), command() and status() into may_play_now().
This commit is contained in:
parent
a499a5d8f2
commit
d1ff2a6089
3 changed files with 26 additions and 33 deletions
|
@ -369,6 +369,8 @@ 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);
|
||||
extern int may_play_now(struct natstr *natp, time_t current_time,
|
||||
int suppress_deity_message);
|
||||
/* more under Commands */
|
||||
/* empmod.c */
|
||||
/* init_nats.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue