summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/config.h5
-rw-r--r--mbbsd/bbs.c2
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)