diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-22 02:53:04 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-22 02:53:04 +0800 |
commit | a8ab4bdde4b7cf54695951871343a020728d6c47 (patch) | |
tree | 523382cc171765aee13da73cfc46a504f5b79da9 /mbbsd | |
parent | 600422d4c70829782cde54cd6b27fc25d6a24871 (diff) | |
download | pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar.gz pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar.bz2 pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar.lz pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar.xz pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.tar.zst pttbbs-a8ab4bdde4b7cf54695951871343a020728d6c47.zip |
new police permission.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 8 | ||||
-rw-r--r-- | mbbsd/user.c | 2 | ||||
-rw-r--r-- | mbbsd/var.c | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 91cb17cc..8363d156 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -472,7 +472,13 @@ my_query(const char *uident) prints("《 性 別 》%-28.28s\n", sex[muser.sex % 8]); showplans(muser.userid); - pressanykey(); + if(HasUserPerm(PERM_SYSOP|PERM_POLICE) ) + { + if(vmsg("T: 開立罰單")=='T') + violate_law(&muser, tuid); + } + else + pressanykey(); return FULLUPDATE; } return DONOTHING; diff --git a/mbbsd/user.c b/mbbsd/user.c index 3f6540a8..e6f78835 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -219,7 +219,7 @@ kick_all(char *user) } } -static void +void violate_law(userec_t * u, int unum) { char ans[4], ans2[4]; diff --git a/mbbsd/var.c b/mbbsd/var.c index 7798143d..3afa2d6f 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -38,7 +38,7 @@ const char * const str_permid[] = { "立法組", /* PERM_LAW */ "小組長", /* PERM_SYSSUBOP */ "退休站長", /* PERM_OLDSYSOP */ - "Ptt" /* PERM_PTT */ + "警察" /* PERM_POLICE */ }; const char * const str_permboard[] = { |