Commits

Anonymous committed 15f5875

Among bans with the same creation time, prefer the one with longest lifetime.

Comments (0)

Files changed (1)

modules/core/m_ban.c

 	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,