diff options
-rw-r--r-- | mbbsd/mbbsd.c | 2 | ||||
-rw-r--r-- | mbbsd/talk.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 529f0931..30d8e1b4 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -861,7 +861,7 @@ static void init_guest_info(void) currutmp->pager = 2; } -#ifdef FOREIGN_REG_DAY +#ifdef FOREIGN_REG_DAY > 0 inline static void foreign_warning(void){ if ((cuser.uflag2 & FOREIGN) && !(cuser.uflag2 & LIVERIGHT)){ if (login_start_time - cuser.firstlogin > (FOREIGN_REG_DAY - 5) * 24 * 3600){ diff --git a/mbbsd/talk.c b/mbbsd/talk.c index ab09c46a..f5b1bfb6 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -635,7 +635,10 @@ my_write(pid_t pid, char *prompt, char *id, int flag, userinfo_t * puin) strlcpy(destid, id, sizeof(destid)); if (!uin && !((flag == WATERBALL_GENERAL - || flag == WATERBALL_ANGEL || flag == WATERBALL_ANSWER) +#ifdef PLAY_ANGEL + || flag == WATERBALL_ANGEL || flag == WATERBALL_ANSWER +#endif + ) && water_which->count > 0)) { vmsg("糟糕! 對方已落跑了(不在站上)! "); watermode = -1; |