/* 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
}
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;
timeq_add(ent->expires, gline_expire, 0);
}
if (announce)
- irc_gline(NULL, ent);
+ irc_gline(NULL, ent, silent);
return ent;
}
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;
}
issuer = "<unknown>";
}
if (expiration > now)
- gline_add(issuer, key, expiration - now, reason, issued, 0);
+ gline_add(issuer, key, expiration - now, reason, issued, 0, 0);
return 0;
}