1
0
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:
cyberbotx
2009-01-13 02:13:39 +00:00
parent f7088139a0
commit c767dcac5f
+2 -2
View File
@@ -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--;
}