X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..3b7fa78b1de8f9ee8718cba3da3b2db522b70620:/src/gline.h diff --git a/src/gline.h b/src/gline.h index 2824bde..09da08b 100644 --- a/src/gline.h +++ b/src/gline.h @@ -1,11 +1,11 @@ /* gline.h - Gline database * Copyright 2001-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -25,6 +25,7 @@ struct gline { time_t issued; + time_t lastmod; time_t expires; char *issuer; char *target; @@ -40,10 +41,12 @@ struct gline_discrim { char *reason_mask; time_t max_issued; time_t min_expire; + time_t min_lastmod; + time_t max_lastmod; }; void gline_init(void); -struct gline *gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, int announce); +struct gline *gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, time_t lastmod, int announce, int silent); struct gline *gline_find(const char *target); int gline_remove(const char *target, int announce); void gline_refresh_server(struct server *srv);