]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-blacklist.c
Fix for crash on BURST (B) message for a channel with +L, at least one ban or except...
[irc/evilnet/x3.git] / src / mod-blacklist.c
index 45776e7a1b1d92d678bc2ee10ea4cd16edf5894a..39b2d5e557965a51bbf5d4cdff967ea284777eb9 100644 (file)
@@ -5,7 +5,7 @@
  *
  * srvx 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,
@@ -152,7 +152,7 @@ dnsbl_hit(struct sar_request *req, struct dns_header *hdr, struct dns_rr *rr, un
             target[0] = '*';
             target[1] = '@';
             strcpy(target + 2, data->client_ip);
-            gline_add(self->name, target, zone->duration, reason, now, now, 1, 0);
+            gline_add(self->name, target, zone->duration, reason, now, 1, 0);
         }
     }
     free(txt);
@@ -190,7 +190,7 @@ blacklist_check_user(struct userNode *user)
         target[0] = '*';
         target[1] = '@';
         strcpy(target + 2, host);
-        gline_add(self->name, target, conf.gline_duration, reason, now, now, 1, 0);
+        gline_add(self->name, target, conf.gline_duration, reason, now, 1, 0);
     }
 
     /* Figure out the base part of a DNS blacklist hostname. */