summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-22 02:53:04 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-22 02:53:04 +0800
commita8ab4bdde4b7cf54695951871343a020728d6c47 (patch)
tree523382cc171765aee13da73cfc46a504f5b79da9 /mbbsd
parent600422d4c70829782cde54cd6b27fc25d6a24871 (diff)
downloadpttbbs-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.c8
-rw-r--r--mbbsd/user.c2
-rw-r--r--mbbsd/var.c2
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[] = {