summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-20 07:45:13 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-20 07:45:13 +0800
commit869adebfebb4b742859657540c40ea168fd08eb4 (patch)
treeacf20cb62d4524a3ddf01705ff0c14776c7b3079 /mbbsd/mbbsd.c
parentc54b428bfee694bdd45d712fb38cb23f7591000b (diff)
downloadpttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar.gz
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar.bz2
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar.lz
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar.xz
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.tar.zst
pttbbs-869adebfebb4b742859657540c40ea168fd08eb4.zip
* refine adbanner_usong stuff, add timebomb
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4864 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 747c8d4d..be6f801e 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1166,6 +1166,8 @@ inline static void foreign_warning(void){
}
#endif
+// XXX temporary...
+int query_adbanner_usong_pref_changed(const userec_t *u);
static void
user_login(void)
@@ -1265,6 +1267,14 @@ user_login(void)
is_first_login_of_today )
check_BM(); /* 自動取下離職板主權力 */
+ // XXX only for temporary...
+#ifdef ADBANNER_USONG_TIMEBOMB
+ if (last_login_time < ADBANNER_USONG_TIMEBOMB)
+ {
+ if (query_adbanner_usong_pref_changed(cuser_ref))
+ pwcuToggleUserFlag(ADBANNER_USONG_FLAG);
+ }
+#endif
} else if (strcmp(cuser.userid, STR_GUEST) == 0) { /* guest */