1 | #ifndef MODULE_ANTICASC_H_
|
---|
2 | #define MODULE_ANTICASC_H_
|
---|
3 |
|
---|
4 | #ifdef CS_ANTICASC
|
---|
5 | extern void ac_init(void);
|
---|
6 | extern void ac_init_stat(void);
|
---|
7 | extern void ac_do_stat(void);
|
---|
8 | extern void ac_clear(void);
|
---|
9 | extern void ac_copy_vars(struct s_auth *src, struct s_auth *dst);
|
---|
10 | extern void ac_init_client(struct s_client *cl, struct s_auth *account);
|
---|
11 | extern void ac_chk(struct s_client *cl, ECM_REQUEST *er, int32_t level);
|
---|
12 | extern void insert_zaplist(ECM_REQUEST *er, struct s_client *client);
|
---|
13 | static inline bool acosc_enabled(void) { return cfg.acosc_enabled; }
|
---|
14 | extern bool anticasc_logging(char *txt);
|
---|
15 | #else
|
---|
16 | static inline void ac_init(void) { }
|
---|
17 | static inline void ac_init_stat(void) { }
|
---|
18 | static inline void ac_do_stat(void) { }
|
---|
19 | static inline void ac_clear(void) { }
|
---|
20 | static inline void ac_copy_vars(struct s_auth *UNUSED(src), struct s_auth *UNUSED(dst)) { }
|
---|
21 | static inline void ac_init_client(struct s_client *UNUSED(cl), struct s_auth *UNUSED(account)) { }
|
---|
22 | static inline void ac_chk(struct s_client *UNUSED(cl), ECM_REQUEST *UNUSED(er), int32_t UNUSED(level)) { }
|
---|
23 | static inline void insert_zaplist(ECM_REQUEST *UNUSED(er), struct s_client *UNUSED(client)) { }
|
---|
24 | static inline bool acosc_enabled(void) { return 0; }
|
---|
25 | static inline bool anticasc_logging(char *UNUSED(txt)) { return 0; }
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | #endif
|
---|