summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c8
1 files changed, 7 insertions, 1 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;