diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 22:15:54 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 22:15:54 +0800 |
commit | a1e7b5668d77a5930d09f6ed39099c87e781f829 (patch) | |
tree | 7b1aed76565a3111127d978d9d6443e753fdc89a | |
parent | a3b37ce828a5d6ec07f621b367c46f21c6df58e9 (diff) | |
download | pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar.gz pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar.bz2 pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar.lz pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar.xz pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.tar.zst pttbbs-a1e7b5668d77a5930d09f6ed39099c87e781f829.zip |
* does not allow guest to change mind
* set default guest mind to empty string
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 1 | ||||
-rw-r--r-- | mbbsd/talk.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index f6f99cbb..5137f126 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1174,6 +1174,7 @@ static void init_guest_info(void) sizeof(currutmp->nickname)); strlcpy(cuser.realname, name[(int)i], sizeof(cuser.realname)); strlcpy(cuser.address, addr[(int)i], sizeof(cuser.address)); + memset(cuser.mind, 0, sizeof(cuser.mind)); cuser.sex = i % 8; currutmp->pager = PAGER_DISABLE; } diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 28873ce5..c3ed6b0b 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2835,7 +2835,8 @@ userlist(void) } break; - case 'i':{ + case 'i': + if (HasUserPerm(PERM_BASIC|PERM_LOGINOK)) { char mindbuf[5]; getdata(b_lines - 1, 0, "現在的心情? ", mindbuf, sizeof(mindbuf), DOECHO); |