diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-06 22:58:30 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-06 22:58:30 +0800 |
commit | 349546bad375aaeae458ed989c691a1fe00b1c39 (patch) | |
tree | 14439a7a38943a75f808eaa642cea7aabfd11f5f /include | |
parent | 1a3e5b7119064b6d9e21d2c8531e091624d17f10 (diff) | |
download | pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar.gz pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar.bz2 pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar.lz pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar.xz pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.tar.zst pttbbs-349546bad375aaeae458ed989c691a1fe00b1c39.zip |
1.kick people before give them ticket.
2.set bad post -> 1 hour can't post.
3.maxiam 9 post whin 3 min.
4.one ticket for every 5 bad post.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2716 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h index ca3391a4..eebcc8fd 100644 --- a/include/proto.h +++ b/include/proto.h @@ -155,8 +155,10 @@ void buildBMcache(int); void reload_bcache(void); void reload_fcache(void); #ifdef USE_COOLDOWN -#define cooldowntimeof(uid) SHM->cooldowntime[uid - 1] +#define cooldowntimeof(uid) (SHM->cooldowntime[uid - 1] & 0xFFFFFFF0) +#define posttimesof(uid) (SHM->cooldowntime[uid - 1] & 0xF) void add_cooldowntime(int uid, int min); +void add_posttimes(int uid, int times); #endif /* cal */ @@ -689,6 +691,7 @@ int u_editcalendar(void); void user_display(const userec_t *u, int real); void uinfo_query(userec_t *u, int real, int unum); int showsignature(char *fname, int *j); +void kick_all(char *user); void mail_violatelaw(const char* crime, const char* police, const char* reason, const char* result); void showplans(const char *uid); int u_info(void); |