Among bans with the same creation time, prefer the one with longest lifetime.
This commit is contained in:
parent
05114b16a3
commit
c177d078ea
|
@ -105,7 +105,9 @@ ms_ban(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
if (ptr != NULL)
|
||||
{
|
||||
aconf = ptr->data;
|
||||
if (aconf->created >= created)
|
||||
if (aconf->created > created ||
|
||||
(aconf->created == created &&
|
||||
aconf->lifetime >= lifetime))
|
||||
{
|
||||
if (IsPerson(source_p))
|
||||
sendto_one_notice(source_p,
|
||||
|
|
Loading…
Reference in New Issue