summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/mbbsd.c42
-rw-r--r--pttbbs/mbbsd/menu.c3
2 files changed, 10 insertions, 35 deletions
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index ff4e9ea4..1219d3e6 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/mbbsd/mbbsd.c
@@ -1114,16 +1114,6 @@ inline static void append_log_recent_login()
log_file(logfn, LOG_CREAT, buf);
}
-inline static void birthday_make_a_wish(const struct tm *ptime, const struct tm *tmp)
-{
- if (tmp->tm_mday != ptime->tm_mday) {
- more("etc/birth.post", YEA);
- if (enter_board("WhoAmI")==0) {
- do_post();
- }
- }
-}
-
inline static void check_mailbox_quota(void)
{
if (!HasUserPerm(PERM_READMAIL))
@@ -1161,7 +1151,7 @@ static void
user_login(void)
{
struct tm ptime, lasttime;
- int nowusers, ifbirth = 0, i;
+ int nowusers, i;
/* NOTE! 在 setup_utmp 之前, 不應該有任何 blocking/slow function,
* 否則可藉機 race condition 達到 multi-login */
@@ -1187,25 +1177,17 @@ user_login(void)
strlcpy(fromhost_masked, fromhost, sizeof(fromhost_masked));
obfuscate_ipstr(fromhost_masked);
- /* show welcome_login */
- if( (ifbirth = (ptime.tm_mday == cuser.day &&
- ptime.tm_mon + 1 == cuser.month)) ){
- char buf[PATHLEN];
- snprintf(buf, sizeof(buf), "etc/Welcome_birth.%d", getHoroscope(cuser.month, cuser.day));
- more(buf, NA);
- }
- else {
#ifndef MULTI_WELCOME_LOGIN
- more("etc/Welcome_login", NA);
+ more("etc/Welcome_login", NA);
#else
- if( SHM->GV2.e.nWelcomes ){
- char buf[80];
- snprintf(buf, sizeof(buf), "etc/Welcome_login.%d",
- (int)login_start_time % SHM->GV2.e.nWelcomes);
- more(buf, NA);
- }
-#endif
+ if( SHM->GV2.e.nWelcomes ){
+ char buf[80];
+ snprintf(buf, sizeof(buf), "etc/Welcome_login.%d",
+ (int)login_start_time % SHM->GV2.e.nWelcomes);
+ more(buf, NA);
}
+#endif
+
refresh();
currutmp->alerts |= load_mailalert(cuser.userid);
@@ -1234,12 +1216,6 @@ user_login(void)
welcome_msg();
resolve_over18();
- if( ifbirth ){
- birthday_make_a_wish(&ptime, &lasttime);
- if( vans("是否要顯示「壽星」於使用者名單上?(y/N)") == 'y' )
- currutmp->birth = 1;
- }
-
append_log_recent_login();
check_bad_login();
#ifdef USE_CHECK_BAD_CLIENTS
diff --git a/pttbbs/mbbsd/menu.c b/pttbbs/mbbsd/menu.c
index 7f84825c..85f140e8 100644
--- a/pttbbs/mbbsd/menu.c
+++ b/pttbbs/mbbsd/menu.c
@@ -306,8 +306,7 @@ show_status(void)
"%d" ANSI_COLOR(30) "人, 我是" ANSI_COLOR(31) "%s"
ANSI_COLOR(30) "\t[呼叫器]" ANSI_COLOR(31) "%s ",
ptime.tm_mon + 1, ptime.tm_mday, myweek[i], myweek[i + 1],
- ptime.tm_hour, ptime.tm_min, currutmp->birth ?
- "生日要請客唷" : SHM->today_is,
+ ptime.tm_hour, ptime.tm_min, SHM->today_is,
SHM->UTMPnumber, cuser.userid,
str_pager_modes[currutmp->pager % PAGER_MODES]);
}