X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fxline.h;h=dad0ed238851696e7d23e4d1f83f0a87ec1f7573;hb=8ed28d1f98d4d4c653201f0c4273e74dd8a122e6;hp=9ba1358aa3f39e82cc3ea69de18e7482554316ce;hpb=32d93141925f23cd894209af44f48918b23dcb51;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/xline.h b/include/xline.h index 9ba1358aa..dad0ed238 100644 --- a/include/xline.h +++ b/include/xline.h @@ -28,6 +28,11 @@ #include "users.h" #include "channels.h" +const int APPLY_GLINES = 1; +const int APPLY_KLINES = 2; +const int APPLY_QLINES = 4; +const int APPLY_ZLINES = 8; +const int APPLY_ALL = APPLY_GLINES | APPLY_KLINES | APPLY_QLINES | APPLY_ZLINES; /** XLine is the base class for ban lines such as G lines and K lines. */ @@ -139,7 +144,7 @@ char* matches_kline(const char* host); char* matches_exception(const char* host); void expire_lines(); -void apply_lines(); +void apply_lines(const int What); void stats_k(userrec* user); void stats_g(userrec* user);