1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 12:53:14 +02:00

- Fixed bug in CVS where the ban exempt (+e) handling was reversed: if a

non-matching +e was present, one could walk through bans. Reported by
  tabrisnet (#0003909). Bug was caused by chained/stacked extbans.
This commit is contained in:
Bram Matthys
2010-05-24 12:01:07 +00:00
parent a9e547614b
commit 625102cacd
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -1968,3 +1968,6 @@
- SVSMODE now triggers HOOKTYPE_UMODE_CHANGE and HOOKTYPE_REMOTE_CHANMODE.
- Added chmode +r to HTML documentation.
- ./Config now remembers extra/custom ./configure parameters.
- Fixed bug in CVS where the ban exempt (+e) handling was reversed: if a
non-matching +e was present, one could walk through bans. Reported by
tabrisnet (#0003909). Bug was caused by chained/stacked extbans.
+2 -2
View File
@@ -590,8 +590,8 @@ Ban *is_banned_with_nick(aClient *sptr, aChannel *chptr, int type, char *nick)
return NULL;
}
#else
if (!ban_check_mask(sptr, chptr, tmp2->banstr, type, 0))
return NULL;
if (ban_check_mask(sptr, chptr, tmp2->banstr, type, 0))
return NULL; /* except matched */
#endif
}
break; /* ban found and not on except */