diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-11-15 23:57:25 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-11-15 23:57:25 +0800 |
commit | 46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48 (patch) | |
tree | 96a334053e3166f95dec80ba9b5c1759dbda8aa4 /mbbsd/talk.c | |
parent | 8fd6a97dd9ba2275cc628fa3c529f07a927a8acc (diff) | |
download | pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.gz pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.bz2 pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.lz pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.xz pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.zst pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.zip |
add restriction to PERM_VIOLATELAW
no chat
no write
no plan file
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3238 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index d6f0dbc6..af9aad56 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -52,7 +52,7 @@ iswritable_stat(const userinfo_t * uentp, int fri_stat) if (HasUserPerm(PERM_SYSOP)) return 1; - if (!HasUserPerm(PERM_LOGINOK)) + if (!HasUserPerm(PERM_LOGINOK) || HasUserPerm(PERM_VIOLATELAW)) return 0; return (uentp->pager != PAGER_ANTIWB && @@ -471,7 +471,7 @@ my_query(const char *uident) if ((uentp && ((fri_stat & HFM) || strcmp(muser.userid,cuser.userid) == 0) && !uentp->invisible)) prints("《 性 別 》%-28.28s\n", sex[muser.sex % 8]); - showplans(muser.userid); + showplans_userec(&muser); if(HasUserPerm(PERM_SYSOP|PERM_POLICE) ) { if(vmsg("T: 開立罰單")=='T') |