X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d0f04f713ca0b689f745842fcc9e61d24610f11a..3b7fa78b1de8f9ee8718cba3da3b2db522b70620:/src/gline.h diff --git a/src/gline.h b/src/gline.h index 1521985..09da08b 100644 --- a/src/gline.h +++ b/src/gline.h @@ -5,7 +5,7 @@ * * 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, int silent); +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);