1 |
|
/* |
2 |
|
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (c) 1997-2018 ircd-hybrid development team |
4 |
> |
* Copyright (c) 1997-2020 ircd-hybrid development team |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
81 |
|
struct ip_entry *iptr = PATRICIA_DATA_GET(pnode, struct ip_entry); |
82 |
|
|
83 |
|
if (iptr->count_local == 0 && iptr->count_remote == 0 && |
84 |
< |
(CurrentTime - iptr->last_attempt) >= ConfigGeneral.throttle_time) |
84 |
> |
(event_base->time.sec_monotonic - iptr->last_attempt) >= ConfigGeneral.throttle_time) |
85 |
|
{ |
86 |
|
patricia_remove(iptr->trie_pointer, pnode); |
87 |
|
|