summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c6
-rw-r--r--mbbsd/edit.c4
-rw-r--r--mbbsd/talk.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 9b6c0b87..08d7ffac 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -531,12 +531,12 @@ show_brdlist(int head, int clsflag, int newflag)
prints("%5d %c %sMyFavFolder" ANSI_RESET " 目錄 □%-34s" ANSI_RESET,
head,
ptr->myattr & NBRD_TAG ? 'D' : ' ',
- !(cuser.uflag2 & FAVNOHILIGHT) ? ANSI_COLOR(1;36) : "",
+ !(cuser.uflag2 & FAVNOHILIGHT) ? HILIGHT_COLOR : "",
title);
else
prints("%6d %sMyFavFolder" ANSI_RESET " 目錄 □%-34s" ANSI_RESET,
get_data_number(get_fav_folder(getfolder(ptr->bid))),
- !(cuser.uflag2 & FAVNOHILIGHT) ? ANSI_COLOR(1;36) : "",
+ !(cuser.uflag2 & FAVNOHILIGHT) ? HILIGHT_COLOR : "",
title);
continue;
}
@@ -569,7 +569,7 @@ show_brdlist(int head, int clsflag, int newflag)
prints("%s%-13s" ANSI_RESET "%s%5.5s" ANSI_COLOR(0;37) "%2.2s" ANSI_RESET
"%-34.34s",
((!(cuser.uflag2 & FAVNOHILIGHT) &&
- getboard(ptr->bid) != NULL))? ANSI_COLOR(1;36) : "",
+ getboard(ptr->bid) != NULL))? HILIGHT_COLOR : "",
B_BH(ptr)->brdname,
make_class_color(B_BH(ptr)->title),
B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7);
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index c871ca52..51df6f5a 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1480,7 +1480,7 @@ browse_sigs:
if (si.total > 0){
unsigned char msg[64];
- ch = isdigit(cuser.signature) ? cuser.signature : 'X';
+ ch = isdigit(cuser.signature) ? cuser.signature : 'x';
sprintf(msg,
(browsing || (si.max > si.show_max)) ?
"請選擇簽名檔 (1-9, 0=不加 n=翻頁 x=隨機)[%c]: ":
@@ -1503,7 +1503,7 @@ browse_sigs:
if (isdigit((int)buf[0]))
ch = buf[0];
else
- ch = '1' + random() % si.max;
+ ch = '1' + random() % (si.max+1);
cuser.signature = buf[0];
if (ch != '0') {
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 039a75ef..58d3331e 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -399,7 +399,7 @@ my_query(const char *uident)
muser.userid,
muser.username,
(int)(26 - strlen(muser.userid) - strlen(muser.username)), "",
- money_level(cuser.money));
+ money_level(muser.money));
if (uentp && ((fri_stat & HFM && !uentp->invisible) || strcmp(muser.userid,cuser.userid) == 0))
prints(" ($%d)", muser.money);
outc('\n');