diff options
-rw-r--r-- | mbbsd/register.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 31a2b7e9..a2d640e5 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -551,7 +551,8 @@ new_register(void) if (bad_user_id(passbuf)) outs("無法接受這個代號,請使用英文字母,並且不要包含空格\n"); else if ((id = getuser(passbuf, &xuser)) && - (minute = check_and_expire_account(id, &xuser)) > 0) + // >=: see check_and_expire_account definition + (minute = check_and_expire_account(id, &xuser)) >= 0) { if (minute == 999999) // XXX magic number. It should be greater than MAX_USERS at least. outs("此代號已經有人使用 是不死之身"); |