diff options
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r-- | mbbsd/chat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 8e4b2af5..e736e387 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -202,9 +202,13 @@ chat_pager(char *unused) { char genbuf[200]; - char *msgs[] = {"關閉", "打開", "拔掉", "防水", "好友"}; + char *msgs[PAGER_MODES] = { + /* Ref: please match PAGER* in modes.h */ + "關閉", "打開", "拔掉", "防水", "好友" + }; + snprintf(genbuf, sizeof(genbuf), "◆ 您的呼叫器:[%s]", - msgs[currutmp->pager = (currutmp->pager + 1) % 5]); + msgs[currutmp->pager = (currutmp->pager + 1) % PAGER_MODES]); printchatline(genbuf); } |