summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 23:49:11 +0800
committerlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 23:49:11 +0800
commit4802eb60afd797bde91ada6617771fb506856a38 (patch)
treee6b40285d6f4806cd88344b7dd2543b61ab18b64 /mbbsd/talk.c
parent8ac21d71f5e4b6b30c207a176d5811c2ec9a638d (diff)
downloadpttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar.gz
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar.bz2
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar.lz
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar.xz
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.tar.zst
pttbbs-4802eb60afd797bde91ada6617771fb506856a38.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@250 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 82ffb0ef..d31299ec 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.47 2002/05/25 11:18:11 ptt Exp $ */
+/* $Id: talk.c,v 1.48 2002/05/30 15:49:11 lwms Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -2106,7 +2106,7 @@ static void userlist(void)
}
getdata(b_lines - 1, 0, "你現在的心情 0:無 q不變 [q]:",
genbuf, 3, LCECHO);
- if( genbuf[0] && genbuf[0] != 'q' )
+ if( genbuf[0] && genbuf[0] != 'q' && atoi(genbuf) > 0)
currutmp->mind = atoi(genbuf) % i;
break;