X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d914d1cbfd541d1c1302ac989a8c5b7d57d25f55..928e5a35af3dc82bdfbdd041dd3160e0a59aa01d:/src/shun.h?ds=sidebyside diff --git a/src/shun.h b/src/shun.h index 65d41fa..547d1e3 100644 --- a/src/shun.h +++ b/src/shun.h @@ -3,9 +3,9 @@ * * 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 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);