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

@@ -1062,6 +1062,7 @@ E void FDECL(nocmov, (int x, int y));
#ifdef UNIX
E void NDECL(getmailstatus);
#endif
E void NDECL(ck_server_admin_msg);
E void NDECL(ckmailstatus);
E void FDECL(readmail, (struct obj *));
#endif /* MAIL */