1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 20:46:38 +02:00

- Fixed braindamage in stacked bans.

This commit is contained in:
Bram Matthys
2010-09-25 11:21:37 +00:00
parent 08f86d9b2e
commit ed8b8da20b
2 changed files with 8 additions and 5 deletions
+1
View File
@@ -2150,3 +2150,4 @@
- Fix ordering of ``9. FAQ'' and ``10. Modules'' in HTML docs.
- Always display the real host of successful OPERing up. Reported by
Josh. (#3950)
- Fixed braindamage in stacked bans.
+7 -5
View File
@@ -327,11 +327,13 @@ int extban_is_ok_nuh_extban(aClient* sptr, aChannel* chptr, char* para, int chec
return 0; /* Don't add unknown extbans. */
}
/* Now we have to ask the stacked extban if it's ok. */
extban_is_ok_recursion++;
isok = p->is_ok;
extban_is_ok_recursion--;
if (isok)
return p->is_ok(sptr, chptr, mask, checkt, what, what2);
if (p->is_ok)
{
extban_is_ok_recursion++;
isok = p->is_ok(sptr, chptr, mask, checkt, what, what2);
extban_is_ok_recursion--;
return isok;
}
}
return 1; /* Either not an extban, or extban has NULL is_ok. Good to go. */
}