1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 09:23:14 +02:00

Fixed check_ban to apply bans even if TTB was changed after the user has been kicked

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2808 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-03-13 20:46:16 +00:00
parent 5a51984db1
commit c4247b71b2
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -850,7 +850,10 @@ static void check_ban(ChannelInfo * ci, User * u, int ttbtype)
return;
bd->ttb[ttbtype]++;
if (bd->ttb[ttbtype] == ci->ttb[ttbtype]) {
if (ci->ttb[ttbtype] && bd->ttb[ttbtype] >= ci->ttb[ttbtype]) {
/* bd->ttb[ttbtype] can possibly be > ci->ttb[ttbtype] if ci->ttb[ttbtype] was changed after
* the user has been kicked - Adam
*/
char *av[4];
int ac;
char mask[BUFSIZE];