summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c7
-rw-r--r--mbbsd/cal.c2
-rw-r--r--mbbsd/chc.c2
-rw-r--r--mbbsd/chicken.c10
-rw-r--r--mbbsd/gomo.c16
-rw-r--r--mbbsd/mail.c3
-rw-r--r--mbbsd/mbbsd.c3
-rw-r--r--mbbsd/user.c6
8 files changed, 23 insertions, 26 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 1c75e1a6..25899716 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -42,7 +42,6 @@ anticrosspost()
cuser->vl_count++;
mail_by_link("Ptt警察部隊", "Cross-Post罰單",
BBSHOME "/etc/crosspost.txt");
- //passwd_update(usernum, &cuser);
u_exit("Cross Post");
exit(0);
}
@@ -96,7 +95,7 @@ save_violatelaw()
}
demoney(-1000 * cuser->vl_count);
cuser->userlevel &= (~PERM_VIOLATELAW);
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return 0;
}
@@ -710,7 +709,6 @@ do_general(int isbid)
prints(" 稿酬 %d 銀。",aborted);
demoney(aborted);
}
- // passwd_update(usernum, &cuser); /* post 數 */
} else
outs("測試信件不列入紀錄,敬請包涵。");
@@ -1935,8 +1933,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
move(b_lines - 1, 0);
clrtoeol();
demoney(-fhdr->money);
- // passwd_update(usernum, &cuser); /* post 數 */
- prints("%s,您的文章減為 %d 篇,支付清潔費 %d 銀", msg_del_ok,
+ prints("%s,您的文章減為 %d 篇,支付清潔費 %d 銀", msg_del_ok,
cuser->numposts, fhdr->money);
refresh();
pressanykey();
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 29cacc98..a87dcb42 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -252,7 +252,7 @@ inmailbox(int m)
{
passwd_query(usernum, &xuser);
cuser->exmailbox = xuser.exmailbox + m;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return cuser->exmailbox;
}
diff --git a/mbbsd/chc.c b/mbbsd/chc.c
index 6779f456..e9f043fd 100644
--- a/mbbsd/chc.c
+++ b/mbbsd/chc.c
@@ -776,7 +776,7 @@ mainloop(int s, chcusr_t *user1, chcusr_t *user2, board_t board, play_func_t pla
}
user1->lose--;
chcusr_put(cuser, user1);
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
else if (chc_mode & CHC_WATCH) {
strlcpy(chc_warnmsg, "結束觀棋", sizeof(chc_warnmsg));
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index ce876c84..1f6a4ecd 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -505,7 +505,7 @@ ch_sell()
chicken_type[(int)mychicken->type], money, ctime(&now));
log_file(CHICKENLOG, buf, 1);
mychicken->lastvisit = mychicken->name[0] = 0;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
more(CHICKEN_PIC "/sell", YEA);
demoney(money);
return 1;
@@ -663,7 +663,7 @@ deadtype(chicken_t * thechicken)
ctime(&now));
log_file(CHICKENLOG, buf, 1);
mychicken->name[0] = 0;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
return i;
}
@@ -860,7 +860,7 @@ recover_chicken(chicken_t * thechicken)
bell();
igetch();
thechicken->lastvisit = 0;
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return 0;
}
@@ -884,7 +884,7 @@ chicken_main()
show_chicken_data(mychicken, NULL);
} while (select_menu());
reload_money();
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
unlockutmpmode();
return 0;
}
@@ -1016,7 +1016,7 @@ chickenpk(int fd)
outs(data + 1);
i = strlen(data) + 1;
passwd_update(duid, &ouser);
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
send(fd, data, i, 0);
if (data[0] == 'q' || data[0] == 'd')
break;
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 23dc9584..91863888 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -327,7 +327,7 @@ gomoku(int fd)
cuser->five_lose++;
/* 一進來先加一場敗場, 贏了後再扣回去, 避免快輸了惡意斷線 */
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
add_io(fd, 0);
@@ -357,7 +357,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
mv.x = mv.y = -2;
send(fd, &mv, sizeof(Horder_t), 0);
mv = *(v - 1);
@@ -377,7 +377,7 @@ gomoku(int fd)
if (ch == 'q') {
if (countgomo(pool) < 10) {
cuser->five_lose--;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
send(fd, '\0', 1, 0);
break;
@@ -405,7 +405,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_tie++;
my->five_tie++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
mv.x = mv.y = -2;
send(fd, &mv, sizeof(Horder_t), 0);
mv = *(v - 1);
@@ -422,7 +422,7 @@ gomoku(int fd)
cuser->five_win++;
my->five_win++;
}
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
outmsg("對方認輸了!!");
break;
} else {
@@ -435,7 +435,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_tie++;
my->five_tie++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
break;
} else {
hewantpass = 1;
@@ -467,7 +467,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
} else
my->five_lose++;
break;
@@ -500,7 +500,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
} else
my->five_lose++;
break;
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 49864cf6..a57e8db1 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1045,7 +1045,7 @@ static int
mail_nooutmail(int ent, fileheader_t * fhdr, char *direct)
{
cuser->userlevel ^= PERM_NOOUTMAIL;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return FULLUPDATE;
}
@@ -1186,7 +1186,6 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct)
if (!xfile.filemode)
outgo_post(&xfile, xboard);
cuser->numposts++;
-// passwd_update(usernum, &cuser);
outs("文章轉錄完成");
pressanykey();
currmode = currmode0;
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 5a4e35c8..1d6ba481 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -178,6 +178,7 @@ u_exit(char *mode)
/* Leeym 上站停留時間限制式 */
}
passwd_index_update(usernum, cuser);
+ passwd_update(usernum, cuser);
log_usies(mode, NULL);
}
@@ -984,7 +985,7 @@ user_login()
#ifdef FOREIGN_REG
foreign_warning();
#endif
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
for (i = 0; i < NUMVIEWFILE; i++)
if ((cuser->loginview >> i) & 1)
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 47cfa8e5..98b6fac7 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -42,7 +42,7 @@ u_loginview()
if (pbits != cuser->loginview) {
cuser->loginview = pbits;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
return 0;
}
@@ -275,7 +275,7 @@ static void Customize(void)
default:
done = 1;
}
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
pressanykey();
}
@@ -688,7 +688,7 @@ u_switchproverb()
fprintf(fp, "座右銘狀態為[自定型]要記得設座右銘的內容唷!!");
fclose(fp);
}
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return 0;
}