MCPcopy Index your code
hub / github.com/NetHack/NetHack / ck_server_admin_msg

Function ck_server_admin_msg

src/mail.c:684–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682#endif /* SIMPLE_MAIL */
683
684void
685ck_server_admin_msg(void)
686{
687#ifdef SERVER_ADMIN_MSG
688 static struct stat ost,nst;
689 static long lastchk = 0;
690
691 if (svm.moves < lastchk + SERVER_ADMIN_MSG_CKFREQ) return;
692 lastchk = svm.moves;
693
694 if (!stat(SERVER_ADMIN_MSG, &nst)) {
695 if (nst.st_mtime > ost.st_mtime)
696 read_simplemail(SERVER_ADMIN_MSG, TRUE);
697 ost.st_mtime = nst.st_mtime;
698 }
699#endif /* SERVER_ADMIN_MSG */
700}
701
702/*ARGSUSED*/
703void

Callers 1

ckmailstatusFunction · 0.85

Calls 2

read_simplemailFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected