Add server admin messaging functionality

It's occasionally important for public servers to notify
all the players. Sending a mail is not reliable, as not everyone
wants to break conduct, or have mail on.

This adds a compile-time defined filename, which NetHack
will monitor. The contents of the file are in the same
format as SIMPLE_MAIL: "sender:message" on one line.
This commit is contained in:
Pasi Kallinen
2016-01-04 23:04:56 +02:00
parent 89e4d5e9fa
commit e9b0fa23d2
4 changed files with 93 additions and 31 deletions

View File

@@ -455,6 +455,7 @@ boolean resuming;
rhack(save_cm);
}
} else if (multi == 0) {
ck_server_admin_msg();
#ifdef MAIL
ckmailstatus();
#endif