diff options
-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); |