diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 16:28:18 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 16:28:18 +0800 |
commit | 899bf216324943696435849414744499dd8a3303 (patch) | |
tree | 8691f931a309492674c7cee74cccd1012da3a4e8 | |
parent | 86f83316beabe3496e7cf4ec2718a23ce5e5cb2f (diff) | |
download | pttbbs-899bf216324943696435849414744499dd8a3303.tar pttbbs-899bf216324943696435849414744499dd8a3303.tar.gz pttbbs-899bf216324943696435849414744499dd8a3303.tar.bz2 pttbbs-899bf216324943696435849414744499dd8a3303.tar.lz pttbbs-899bf216324943696435849414744499dd8a3303.tar.xz pttbbs-899bf216324943696435849414744499dd8a3303.tar.zst pttbbs-899bf216324943696435849414744499dd8a3303.zip |
- (internal) enable customization of hostname shown in AID query window.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4111 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/config.h | 5 | ||||
-rw-r--r-- | mbbsd/bbs.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index 62fcfcf5..849519d7 100644 --- a/include/config.h +++ b/include/config.h @@ -24,6 +24,11 @@ #define MONEYNAME "Ptt" #endif +/* AID 顯示的站台名稱。 若 IP 太長請另行定義。 */ +#ifndef AID_HOSTNAME +#define AID_HOSTNAME MYHOSTNAME +#endif + #ifndef BBSUSER #define BBSUSER "bbs" #endif diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 05aa4e21..90538221 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -3420,7 +3420,7 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln prints("│ " AID_DISPLAYNAME ": " ANSI_COLOR(1) "#%s" ANSI_RESET " (%s) [%s] ", aidc, currboard && currboard[0] ? currboard : "未知", - MYHOSTNAME); + AID_HOSTNAME); getyx_ansi(&y, &x); x = 75 - x; if (x > 1) |