]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/shun.h
make regex case sensitive, and old memoserv fix
[irc/evilnet/x3.git] / src / shun.h
index 65d41fa2a0b141d9c9b6e5e769f46d7a7c16b0ee..547d1e300928c1c441a02f1f74015728c1771ebb 100644 (file)
@@ -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);