summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/bbs.c6
-rw-r--r--mbbsd/menu.c5
-rw-r--r--sample/pttbbs.conf2
3 files changed, 9 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index f5423fd3..1039e1e4 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2142,7 +2142,11 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
return do_bid(ent, fhdr, bp, direct, ptime);
}
- if (bp->brdattr & BRD_NOFASTRECMD)
+ if((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP))
+ {
+ /* I'm BM or SYSOP. */
+ }
+ else if (bp->brdattr & BRD_NOFASTRECMD)
{
int d = (int)bp->fastrecommend_pause - (now - lastrecommend);
if (d > 0)
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index 98ce0f4e..5b4c8494 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -141,7 +141,7 @@ show_status(void)
ANSI_COLOR(34;46) "[%d/%d 星期%c%c %d:%02d]"
ANSI_COLOR(1;33;45) "%-14s"
ANSI_COLOR(30;47) " 目前坊裡有" ANSI_COLOR(31)
- "%d" ANSI_COLOR(30) "人, 我是" ANSI_COLOR(31) "%-12s"
+ "%d" ANSI_COLOR(30) "人, 我是" ANSI_COLOR(31) "%s"
ANSI_COLOR(30) ,
ptime->tm_mon + 1, ptime->tm_mday, myweek[i], myweek[i + 1],
ptime->tm_hour, ptime->tm_min, currutmp->birth ?
@@ -149,9 +149,10 @@ show_status(void)
SHM->UTMPnumber, cuser.userid);
outmsg(mystatus);
i = strlen(mystatus) - (3*7+25);
- sprintf(mystatus, "[扣機]" ANSI_COLOR(31) "%s " ANSI_RESET,
+ sprintf(mystatus, "[扣機]" ANSI_COLOR(31) "%s ",
msgs[currutmp->pager]);
outslr("", i, mystatus, strlen(msgs[currutmp->pager]) + 7);
+ outs(ANSI_RESET);
}
void
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index 6b815e31..9263f386 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -50,7 +50,7 @@
#define RELAY_SERVER_IP "127.0.0.1"
/* 抬頭色彩 */
-#define TITLE_COLOR "\33[0;1;37;46m"
+#define TITLE_COLOR "\033[0;1;37;46m"
/* 若定義, 則所有編輯文章最下方都會加入編輯來源.
否則只有 SYSOP板會加入來源 */