]> git.pond.sub.org Git - empserver/commit
Avoid repeated hours and game down status notifications
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 13:54:02 +0000 (14:54 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 13:59:26 +0000 (14:59 +0100)
commit9ff2c62309d4c33dbac30fe1d73b0ac3ee1c8768
tree0586738d48fd93b4dc70df8928b73af990cc525c
parentb404216dbe0d740f95b8ed685dc3d68871f869a1
Avoid repeated hours and game down status notifications

may_play_now() tells deities about hours restriction and game down
status.  It runs at login and before and after each command.  Getting
notified that often is annoying.

Avoid repetition by remembering notification in new player flags
PF_HOURS and PF_DOWN.  Add a notification when hours restriction has
been lifted.  Ensure the notification is printed before the prompt,
not before the command, by calling may_play_now() from command() only
for mortals.  Safe, because may_play_now() always returns true for
deities anyway.
include/player.h
include/prototypes.h
src/lib/player/empdis.c
src/lib/player/player.c