mirror of
https://github.com/anope/anope.git
synced 2026-06-28 13:56:39 +02:00
Fix bug 992, cause was an unsigned value of 0 having 1 subtracted from it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1921 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -205,8 +205,8 @@ int do_badwords(User * u)
|
||||
}
|
||||
/* After reordering only the entries at the end could still be empty.
|
||||
* We ll free the places no longer in use... - Viper */
|
||||
for (i = ci->bwcount - 1; i >= 0; i--) {
|
||||
if (ci->badwords[i].in_use)
|
||||
for (int j = ci->bwcount - 1; j >= 0; j--) {
|
||||
if (ci->badwords[j].in_use)
|
||||
break;
|
||||
ci->bwcount--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user