summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 22:15:54 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 22:15:54 +0800
commit43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb (patch)
treeca1b01d2d133e9045ec7a6bb3a4a0439d2949818
parent5955027f5e1c2a2d60ae052053aff108a1707f53 (diff)
downloadpttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar.gz
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar.bz2
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar.lz
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar.xz
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.tar.zst
pttbbs-43f9690ae0e0a15e144bc8d14eaa0e73b2cc27bb.zip
* does not allow guest to change mind
* set default guest mind to empty string git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/mbbsd.c1
-rw-r--r--pttbbs/mbbsd/talk.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index f6f99cbb..5137f126 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/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/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index 28873ce5..c3ed6b0b 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/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);