diff options
| author | 2022-08-06 17:55:26 +0100 | |
|---|---|---|
| committer | 2022-08-06 17:55:26 +0100 | |
| commit | 4a02ac8aa57605a274525461892cbe09ca84dde9 (patch) | |
| tree | 1ef5f0fd5231cbd462471a12cb1b76fe9a63fd9d | |
| parent | chm_regmsg: don't duplicate nick in 415 (diff) | |
| download | solanum-dont-reject-username.tar.gz solanum-dont-reject-username.tar.bz2 solanum-dont-reject-username.zip | |
Don't cache rejects for ident@ klines dont-reject-username
| -rw-r--r-- | ircd/reject.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ircd/reject.c b/ircd/reject.c index 801af5ff..01371cba 100644 --- a/ircd/reject.c +++ b/ircd/reject.c @@ -181,7 +181,11 @@ add_reject(struct Client *client_p, const char *mask1, const char *mask2, struct uint32_t hashv; /* Reject is disabled */ - if(ConfigFileEntry.reject_after_count == 0 || ConfigFileEntry.reject_duration == 0) + if (ConfigFileEntry.reject_after_count == 0 || ConfigFileEntry.reject_duration == 0) + return; + + /* Don't cache rejects for ident@ klines */ + if (aconf != NULL && aconf->status == CONF_KILL && (EmptyString(aconf->user) || strcmp(aconf->user, "*"))) return; hashv = 0; |
