diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-26 21:05:03 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-26 21:05:03 +0800 |
commit | ae234cf199abc1bd18bea3e25d3c694a63d48983 (patch) | |
tree | f03a7ca4f2854760456be283a97602aaaf1c0978 /mbbsd | |
parent | 656c29ab97afd9f361a3b6ccd238cb90f9f7b5d9 (diff) | |
download | pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar.gz pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar.bz2 pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar.lz pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar.xz pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.tar.zst pttbbs-ae234cf199abc1bd18bea3e25d3c694a63d48983.zip |
Fix tail \n in angle message
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3390 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 25ce6280..43feb4b2 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -3280,9 +3280,10 @@ int t_angelmsg(){ move(5, 0); outs("즳¯d¨¥¡G\n"); for (i = 0; i < 3; ++i) { - if(fgets(msg[i], sizeof(msg[0]), fp)) + if(fgets(msg[i], sizeof(msg[0]), fp)) { outs(msg[i]); - else + chomp(msg[i]); + } else break; } fclose(fp); |