summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-29 23:53:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-29 23:53:49 +0800
commit9d9efb47decf91be83230ff1f2318d6f2d981265 (patch)
tree8e054b1b87412d3338a6b121f4877883ec6f6ef2 /mbbsd/mbbsd.c
parent6b2f2f3e275322f0cfeccf57d35350edae0de6a0 (diff)
downloadpttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar.gz
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar.bz2
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar.lz
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar.xz
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.tar.zst
pttbbs-9d9efb47decf91be83230ff1f2318d6f2d981265.zip
* (pwcu branch) code refine
* also changed numlogin formula to 'only increase max to one per each day', which allow us to update the value in login state instead of logout stage git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4792 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 8c27da5e..e193bf12 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -994,7 +994,7 @@ check_BM(void)
return;
// disable BM permission
- pwcuBitUnsetLevel(PERM_BM);
+ pwcuBitDisableLevel(PERM_BM);
}
static void
@@ -1145,7 +1145,7 @@ inline static void foreign_warning(void){
mail_muser(cuser, "[出入境管理局]", "etc/foreign_expired_warn");
}
else if (login_start_time - cuser.firstlogin > FOREIGN_REG_DAY * 24 * 3600){
- pwcuBitUnsetLevel(PERM_LOGINOK | PERM_POST);
+ pwcuBitDisableLevel(PERM_LOGINOK | PERM_POST);
vmsg("警告:請至出入境管理局申請永久居留");
}
}