summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 21:05:03 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 21:05:03 +0800
commit013a43d7cd0a0299638793bca0ebd371326e0284 (patch)
tree1258d9938b1740b7bbbf73292bda088bc209d3bd /mbbsd/board.c
parent6d6273c57b2a35a2d71c778de11643376b5eb015 (diff)
downloadpttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar.gz
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar.bz2
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar.lz
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar.xz
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.tar.zst
pttbbs-013a43d7cd0a0299638793bca0ebd371326e0284.zip
- add aligned format of comments
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4158 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 4d643242..26add700 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -285,7 +285,7 @@ b_config(void)
cachePostRes = CheckPostRestriction(currbid);
char canpost = (cachePostPerm && cachePostRes);
-#define LNBOARDINFO (17)
+#define LNBOARDINFO (18)
#define LNPOSTRES (12)
#define COLPOSTRES (50)
@@ -392,6 +392,11 @@ b_config(void)
(bp->brdattr & BRD_IPLOGRECMD) ?
ANSI_COLOR(1)"自動":"不會");
+ prints( " " ANSI_COLOR(1;36) "a" ANSI_RESET
+ " - 推文時 %s" ANSI_RESET " 開頭\n",
+ (bp->brdattr & BRD_ALIGNEDCMT) ?
+ ANSI_COLOR(1)"對齊":"不對齊");
+
#ifdef USE_AUTOCPLOG
prints( " " ANSI_COLOR(1;36) "x" ANSI_RESET
" - 轉錄文章 %s " ANSI_RESET "自動記錄,且 %s "
@@ -547,6 +552,11 @@ b_config(void)
bp->brdattr ^= BRD_LOCALSAVE;
touched = 1;
break;
+
+ case 'a':
+ bp->brdattr ^= BRD_ALIGNEDCMT;
+ touched = 1;
+ break;
case 'e':
if(HasUserPerm(PERM_SYSOP))