diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-28 21:57:40 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-28 21:57:40 +0800 |
commit | 2230c0a8c5a4eb2397673d37e709454195c5e284 (patch) | |
tree | d6b2f7d72e55aa8aa40af5a3bcbe5ffb296dcb20 /mbbsd/talk.c | |
parent | 209a53de9d25820b20e3b5591cd1efb7e221fc24 (diff) | |
download | pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar.gz pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar.bz2 pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar.lz pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar.xz pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.tar.zst pttbbs-2230c0a8c5a4eb2397673d37e709454195c5e284.zip |
* moving into the new pwcu (password - current user helper) API
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4783 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index f1a884d7..d7925696 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2999,10 +2999,11 @@ userlist(void) if (HasUserPerm(PERM_LOGINOK)) { int tmp; char *wm[3] = {"一般", "進階", "未來"}; + + tmp = cuser.uflag2 & WATER_MASK; - cuser.uflag2 -= tmp; tmp = (tmp + 1) % 3; - cuser.uflag2 |= tmp; + pwcuSetWaterballMode(tmp); /* vmsg cannot support multi lines */ move(b_lines - 4, 0); clrtobot(); @@ -3035,7 +3036,7 @@ userlist(void) if (getdata_str(1, 0, "新的暱稱: ", tmp_nick, sizeof(tmp_nick), DOECHO, cuser.nickname) > 0) { - strlcpy(cuser.nickname, tmp_nick, sizeof(cuser.nickname)); + pwcuSetNickname(tmp_nick); strlcpy(currutmp->nickname, cuser.nickname, sizeof(currutmp->nickname)); } redrawall = redraw = 1; |