summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 00:54:32 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 00:54:32 +0800
commitc4bee2e328774a4226673a1d28db06f4c2e4097d (patch)
tree5ca71da72fb9fb2e410c8995820328518edf9798 /mbbsd
parent624c57688fa6d301f1b89ca0e10e843a05307c04 (diff)
downloadpttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar.gz
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar.bz2
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar.lz
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar.xz
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.tar.zst
pttbbs-c4bee2e328774a4226673a1d28db06f4c2e4097d.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@13 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/talk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 32292a75..b59330a9 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.3 2002/03/09 11:48:32 in2 Exp $ */
+/* $Id: talk.c,v 1.4 2002/03/09 16:54:32 in2 Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -657,7 +657,6 @@ int my_write(pid_t pid, char *prompt, char *id, int flag, userinfo_t *puin) {
len = strlen(msg);
}
- watermode = -1;
strip_ansi(msg, msg, 0);
if(uin && *uin->userid && (flag == 0 || flag == 4)) {
sprintf(buf, "丟給 %s : %s [Y/n]?", uin->userid, msg);
@@ -674,6 +673,7 @@ int my_write(pid_t pid, char *prompt, char *id, int flag, userinfo_t *puin) {
}
}
+ watermode = -1;
if(!uin || !*uin->userid || strcasecmp(destid, uin->userid)) {
outmsg("\033[1;33;41m糟糕! 對方已落跑了(不在站上)! \033[37m~>_<~\033[m");
clrtoeol();