empserver/include
Markus Armbruster 9ff2c62309 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.
2009-02-08 14:59:26 +01:00
..
budg.h Update copyright notice 2009-02-08 09:33:18 +01:00
com.h Update copyright notice 2009-02-08 09:33:18 +01:00
combat.h Update copyright notice 2009-02-08 09:33:18 +01:00
commands.h Update copyright notice 2009-02-08 09:33:18 +01:00
commodity.h Update copyright notice 2009-02-08 09:33:18 +01:00
damage.h Update copyright notice 2009-02-08 09:33:18 +01:00
distribute.h Update copyright notice 2009-02-08 09:33:18 +01:00
econfig-spec.h Update copyright notice 2009-02-08 09:33:18 +01:00
empio.h Update copyright notice 2009-02-08 09:33:18 +01:00
empobj.h Update copyright notice 2009-02-08 09:33:18 +01:00
empthread.h Update copyright notice 2009-02-08 09:33:18 +01:00
file.h Update copyright notice 2009-02-08 09:33:18 +01:00
game.h Store game down flag in the game table 2009-02-08 14:18:04 +01:00
ioqueue.h Update copyright notice 2009-02-08 09:33:18 +01:00
item.h Update copyright notice 2009-02-08 09:33:18 +01:00
journal.h Update copyright notice 2009-02-08 09:33:18 +01:00
land.h Update copyright notice 2009-02-08 09:33:18 +01:00
loan.h Update copyright notice 2009-02-08 09:33:18 +01:00
lost.h Update copyright notice 2009-02-08 09:33:18 +01:00
lwp.h Update copyright notice 2009-02-08 09:33:18 +01:00
map.h Update copyright notice 2009-02-08 09:33:18 +01:00
match.h Update copyright notice 2009-02-08 09:33:18 +01:00
misc.h Update copyright notice 2009-02-08 09:33:18 +01:00
mission.h Update copyright notice 2009-02-08 09:33:18 +01:00
nat.h Update copyright notice 2009-02-08 09:33:18 +01:00
news.h Update copyright notice 2009-02-08 09:33:18 +01:00
nsc.h Update copyright notice 2009-02-08 09:33:18 +01:00
nuke.h Update copyright notice 2009-02-08 09:33:18 +01:00
optlist.h Update copyright notice 2009-02-08 09:33:18 +01:00
path.h Update copyright notice 2009-02-08 09:33:18 +01:00
plague.h Update copyright notice 2009-02-08 09:33:18 +01:00
plane.h Update copyright notice 2009-02-08 09:33:18 +01:00
player.h Avoid repeated hours and game down status notifications 2009-02-08 14:59:26 +01:00
power.h Update copyright notice 2009-02-08 09:33:18 +01:00
product.h Update copyright notice 2009-02-08 09:33:18 +01:00
proto.h Update copyright notice 2009-02-08 09:33:18 +01:00
prototypes.h Avoid repeated hours and game down status notifications 2009-02-08 14:59:26 +01:00
queue.h Update copyright notice 2009-02-08 09:33:18 +01:00
retreat.h Update copyright notice 2009-02-08 09:33:18 +01:00
sect.h Update copyright notice 2009-02-08 09:33:18 +01:00
server.h Update copyright notice 2009-02-08 09:33:18 +01:00
service.h Update copyright notice 2009-02-08 09:33:18 +01:00
ship.h Update copyright notice 2009-02-08 09:33:18 +01:00
tel.h Factor out code to read mailboxes, and make read more robust 2009-02-08 14:21:15 +01:00
trade.h Update copyright notice 2009-02-08 09:33:18 +01:00
treaty.h Update copyright notice 2009-02-08 09:33:18 +01:00
types.h Update copyright notice 2009-02-08 09:33:18 +01:00
unit.h Update copyright notice 2009-02-08 09:33:18 +01:00
update.h Update copyright notice 2009-02-08 09:33:18 +01:00
version.h Update copyright notice 2009-02-08 09:33:18 +01:00
xdump.h Update copyright notice 2009-02-08 09:33:18 +01:00
xy.h Update copyright notice 2009-02-08 09:33:18 +01:00