diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-13 20:46:16 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-13 20:46:16 +0000 |
commit | c4247b71b2b5ce70216dad49a5fa1ae689de5a63 (patch) | |
tree | 8a3023d1ac58572151d842069f16d2d6cc51d017 | |
parent | 5a51984db1796220d1dfcaf2797940b1efc100df (diff) |
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
-rw-r--r-- | src/botserv.c | 5 | ||||
-rw-r--r-- | version.log | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/botserv.c b/src/botserv.c index 33a5888a5..c8bb069b0 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -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]; diff --git a/version.log b/version.log index 40203b59c..c6ecf2ff1 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,11 @@ VERSION_MAJOR="1" VERSION_MINOR="8" VERSION_PATCH="3" VERSION_EXTRA="-svn" -VERSION_BUILD="2807" +VERSION_BUILD="2808" # $Log$ # Changes since 1.8.3 Release +#Revision 2808 - Fixed check_ban to apply bans even if TTB was changed after the user has been kicked #Revision 2807 - Added support for tracking permanent channels #Revision 2801 - Fixed some memory leaks in ns_register #Revision 2800 - Fixed a bug that would cause users access in channels to seemingly disappear. Introduced in release 1.8.3, revision 2667 |