X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d0f04f713ca0b689f745842fcc9e61d24610f11a..928e5a35af3dc82bdfbdd041dd3160e0a59aa01d:/src/shun.h diff --git a/src/shun.h b/src/shun.h index 8730c37..547d1e3 100644 --- a/src/shun.h +++ b/src/shun.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 shun { time_t issued; + time_t lastmod; time_t expires; char *issuer; char *target; @@ -40,10 +41,12 @@ struct shun_discrim { char *reason_mask; time_t max_issued; time_t min_expire; + time_t min_lastmod; + time_t max_lastmod; }; void shun_init(void); -struct shun *shun_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, int announce); +struct shun *shun_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, time_t lastmod, int announce); struct shun *shun_find(const char *target); int shun_remove(const char *target, int announce); void shun_refresh_server(struct server *srv);