diff options
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[] = { |