From 349546bad375aaeae458ed989c691a1fe00b1c39 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 6 May 2005 14:58:30 +0000 Subject: 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 --- include/proto.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3