X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..0f3e9cfc4b5d0f13085c975e10c0e6c4c8e5fbc3:/src/gline.c diff --git a/src/gline.c b/src/gline.c index ae8600c..2354e1c 100644 --- a/src/gline.c +++ b/src/gline.c @@ -1,7 +1,7 @@ /* gline.c - Gline database * Copyright 2000-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -134,7 +134,7 @@ gline_remove(const char *target, int announce) } struct gline * -gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, int announce) +gline_add(const char *issuer, const char *target, unsigned long duration, const char *reason, time_t issued, int announce, int silent) { struct gline *ent; struct gline *prev_first; @@ -162,7 +162,7 @@ gline_add(const char *issuer, const char *target, unsigned long duration, const timeq_add(ent->expires, gline_expire, 0); } if (announce) - irc_gline(NULL, ent); + irc_gline(NULL, ent, silent); return ent; } @@ -232,7 +232,7 @@ static int gline_refresh_helper(UNUSED_ARG(void *key), void *data, void *extra) { struct gline *ge = data; - irc_gline(extra, ge); + irc_gline(extra, ge, 0); return 0; } @@ -279,7 +279,7 @@ gline_add_record(const char *key, void *data, UNUSED_ARG(void *extra)) issuer = ""; } if (expiration > now) - gline_add(issuer, key, expiration - now, reason, issued, 0); + gline_add(issuer, key, expiration - now, reason, issued, 0, 0); return 0; }