mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 16:53:12 +02:00
Add support for ban exceptions, via /ELINE and via the config file.
Still need to fix some FIXME/TODO items and things haven't been fully tested yet, so server sync issues or crashes are still possible. Release notes will be updated another day as well..
This commit is contained in:
+3
-6
@@ -716,6 +716,9 @@ struct Server {
|
||||
#define TKL_SPAMF 0x0020
|
||||
#define TKL_NAME 0x0040
|
||||
#define TKL_EXCEPTION 0x0080
|
||||
/* these are not real tkl types, but only used for exceptions: */
|
||||
#define TKL_THROTTLE 0x1000
|
||||
#define TKL_BLACKLIST 0x2000
|
||||
|
||||
#define TKLIsServerBan(tkl) ((tkl)->type & (TKL_KILL|TKL_ZAP|TKL_SHUN))
|
||||
#define TKLIsServerBanType(tpe) ((tpe) & (TKL_KILL|TKL_ZAP|TKL_SHUN))
|
||||
@@ -1072,12 +1075,6 @@ struct _configflag_tld
|
||||
#define CRULE_ALL 0
|
||||
#define CRULE_AUTO 1
|
||||
|
||||
#define CONF_EXCEPT_BAN 1
|
||||
#define CONF_EXCEPT_TKL 2
|
||||
#define CONF_EXCEPT_THROTTLE 3
|
||||
#define CONF_EXCEPT_BLACKLIST 4
|
||||
|
||||
|
||||
struct _configitem {
|
||||
ConfigItem *prev, *next;
|
||||
ConfigFlag flag;
|
||||
|
||||
Reference in New Issue
Block a user