| 458 | #if !defined(UNIX) && !defined(VMS) |
| 459 | |
| 460 | void |
| 461 | ckmailstatus(void) |
| 462 | { |
| 463 | if (u.uswallow || !flags.biff) |
| 464 | return; |
| 465 | if (mustgetmail < 0) { |
| 466 | #if defined(AMIGA) || defined(MSDOS) || defined(TOS) |
| 467 | mustgetmail = (svm.moves < 2000) ? (100 + rn2(2000)) |
| 468 | : (2000 + rn2(3000)); |
| 469 | #endif |
| 470 | return; |
| 471 | } |
| 472 | if (--mustgetmail <= 0) { |
| 473 | static struct mail_info deliver = { |
| 474 | MSG_MAIL, "I have some mail for you", 0, 0 |
| 475 | }; |
| 476 | newmail(&deliver); |
| 477 | mustgetmail = -1; |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 482 |
no test coverage detected