diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 00:52:47 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 00:52:47 +0800 |
commit | 5389a0dd087aaed29cc6e11f5623aef4bb9accf4 (patch) | |
tree | 26fcc78f312b3e090dabbead55d83c84003f45b8 /mbbsd/user.c | |
parent | 56abc87c416464be55ab90ea63ed8be3a09f00fe (diff) | |
download | pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar.gz pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar.bz2 pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar.lz pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar.xz pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.tar.zst pttbbs-5389a0dd087aaed29cc6e11f5623aef4bb9accf4.zip |
- general code refine: remove all hard-coded "Ptt" message string and
use macro BBSMNAME/BBSMNAME2 instead
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3628 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 29b6d030..c8a7943b 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -236,7 +236,7 @@ mail_violatelaw(const char *crime, const char *police, const char *reason, const stampfile(genbuf, &fhdr); if (!(fp = fopen(genbuf, "w"))) return; - fprintf(fp, "作者: [Ptt警察局]\n" + fprintf(fp, "作者: [" BBSMNAME "警察局]\n" "標題: [報告] 違法報告\n" "時間: %s\n" ANSI_COLOR(1;32) "%s" ANSI_RESET "判決:\n " ANSI_COLOR(1;32) "%s" ANSI_RESET @@ -245,7 +245,7 @@ mail_violatelaw(const char *crime, const char *police, const char *reason, const ctime4(&now), police, crime, reason, result); fclose(fp); strcpy(fhdr.title, "[報告] 違法判決報告"); - strcpy(fhdr.owner, "[Ptt警察局]"); + strcpy(fhdr.owner, "[" BBSMNAME "警察局]"); sethomedir(genbuf, crime); append_record(genbuf, &fhdr, sizeof(fhdr)); } @@ -337,7 +337,7 @@ void Customize(void) static const char* desc1[] = { "動態看板", "隱藏文章修改符號(推文/修文) (~)", - "改用彩色修改符號 (+)", + "改用色彩代替修改符號 (+)", #ifdef DBCSAWARE "自動偵測雙位元字集(如全型中文)", #endif @@ -355,7 +355,7 @@ void Customize(void) static const char* desc2[] = { "拒收站外信", "新板自動進我的最愛", - "停用變色顯示我的最愛", + "單色顯示我的最愛", 0, }; @@ -1117,7 +1117,7 @@ showplans_userec(userec_t *user) if(user->userlevel & PERM_VIOLATELAW) { - outs(" \033[1;31m此人違規 尚未繳交罰單\033[m"); + outs(" " ANSI_COLOR(1;31) "此人違規 尚未繳交罰單" ANSI_RESET); return; } |