summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 3d5ba494..92e3b5e5 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -255,18 +255,15 @@ talk_request(int sig)
bell();
bell();
if (currutmp->msgcount) {
- char buf[200];
char timebuf[100];
time_t now = time(0);
- snprintf(buf, sizeof(buf),
- "\033[33;41m★%s\033[34;47m [%s] %s \033[0m",
+ move(0, 0);
+ clrtoeol();
+ prints("\033[33;41m★%s\033[34;47m [%s] %s \033[0m",
SHM->uinfo[currutmp->destuip].userid, my_ctime(&now,timebuf,sizeof(timebuf)),
(currutmp->sig == 2) ? "重要消息廣播!(請Ctrl-U,l查看熱訊記錄)"
: "呼叫、呼叫,聽到請回答");
- move(0, 0);
- clrtoeol();
- outs(buf);
refresh();
} else {
unsigned char mode0 = currutmp->mode;