From 899bf216324943696435849414744499dd8a3303 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 9 Apr 2008 08:28:18 +0000 Subject: - (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 --- include/config.h | 5 +++++ mbbsd/bbs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3