X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fgline.c;h=dfbf77d2394fdc38e946d9423fa68ba267edb20e;hb=e471b5cc12c5c0eb40422df1e755123e534f0934;hp=5b5c5b13bd76a2799f046220e0192f97a2bb74f6;hpb=b41bd506a1da169102d71d8170e753b94377b82c;p=ircu2.10.12-pk.git diff --git a/ircd/gline.c b/ircd/gline.c index 5b5c5b1..dfbf77d 100644 --- a/ircd/gline.c +++ b/ircd/gline.c @@ -503,6 +503,9 @@ gline_add(struct Client *cptr, struct Client *sptr, char *userhost, if (!IsServer(sptr) && MyConnect(sptr)) send_reply(sptr, ERR_BADEXPIRE, expire); return 0; + } else if (expire <= CurrentTime) { + /* This expired G-line was forced to be added, so mark it inactive. */ + flags &= ~GLINE_ACTIVE; } if (!lifetime) /* no lifetime set, use expiration time */