diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-04-29 09:43:41 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-04-29 09:43:41 +0800 |
commit | b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395 (patch) | |
tree | 0b33b780ac48b69c80386f8876dcad358c32a63e | |
parent | 29e9dfe4ffe1a179a30c576acabb17fdc2c23729 (diff) | |
download | pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar.gz pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar.bz2 pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar.lz pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar.xz pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.tar.zst pttbbs-b7cbb8bc4c1bca2aa90c4ec597c51fc739b3a395.zip |
show violateion count.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5671 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 116dffae..d30b60d1 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -1284,7 +1284,11 @@ showplans_userec(userec_t *user) if(user->userlevel & PERM_VIOLATELAW) { - outs(" " ANSI_COLOR(1;31) "此人違規 尚未繳交罰單" ANSI_RESET); + if (user->vl_count) + prints(" " ANSI_COLOR(1;31) "此人違規 尚未繳交罰單(已累計 %d 次)" + ANSI_RESET, user->vl_count); + else + outs(" " ANSI_COLOR(1;31) "此人違規 尚未繳交罰單" ANSI_RESET); return; } |