diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-01 09:58:58 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-01 09:58:58 +0800 |
commit | c241354a317554a621175ad2831ea63348278703 (patch) | |
tree | c2db849231ac8b955df2a9c8a82eaa0a9de602e9 /mbbsd/talk.c | |
parent | 50c77ea036789d89e87169da367bbbec9aff04ad (diff) | |
download | pttbbs-c241354a317554a621175ad2831ea63348278703.tar pttbbs-c241354a317554a621175ad2831ea63348278703.tar.gz pttbbs-c241354a317554a621175ad2831ea63348278703.tar.bz2 pttbbs-c241354a317554a621175ad2831ea63348278703.tar.lz pttbbs-c241354a317554a621175ad2831ea63348278703.tar.xz pttbbs-c241354a317554a621175ad2831ea63348278703.tar.zst pttbbs-c241354a317554a621175ad2831ea63348278703.zip |
CHC new restriction available.
*NOTE* chc protocal changed withOUT backward compatibility.
STOP mbbsd before upgrading.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2974 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 5954cdef..322ab5cc 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1466,25 +1466,29 @@ my_talk(userinfo_t * uin, int fri_stat, char defact) outs(msg_usr_left); } else { int i,j; - showplans(uin->userid); - move(2, 0); - for(i=0;i<2;i++) { - if(uin->withme & (WITHME_ALLFLAG<<i)) { - if(i==0) - outs("歡迎跟我:"); - else - outs("請別找我:"); - for(j=0; j<32 && withme_str[j/2]; j+=2) - if(uin->withme & (1<<(j+i))) - if(withme_str[j/2]) { - outs(withme_str[j/2]); - outc(' '); + + if (!defact) { + showplans(uin->userid); + move(2, 0); + for(i=0;i<2;i++) { + if(uin->withme & (WITHME_ALLFLAG<<i)) { + if(i==0) + outs("歡迎跟我:"); + else + outs("請別找我:"); + for(j=0; j<32 && withme_str[j/2]; j+=2) + if(uin->withme & (1<<(j+i))) + if(withme_str[j/2]) { + outs(withme_str[j/2]); + outc(' '); + } + outc('\n'); } - outc('\n'); - } + } + outs("要和他(她) (T)談天(F)下五子棋(P)鬥寵物(C)下象棋(D)下暗棋(G)下圍棋\n"); + getdata(5, 0, " (N)沒事找錯人了?[N] ", genbuf, 4, LCECHO); } - outs("要和他(她) (T)談天(F)下五子棋(P)鬥寵物(C)下象棋(D)下暗棋(G)下圍棋\n"); - getdata(5, 0, " (N)沒事找錯人了?[N] ", genbuf, 4, LCECHO); + switch (*genbuf) { case 'y': case 't': |