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

Match bans against the vident/vhost instead of real ident/vhost when available.

This commit is contained in:
Viper
2011-11-16 15:57:07 +01:00
parent f1577975a9
commit 0dd4a98e53
4 changed files with 5 additions and 3 deletions
+1
View File
@@ -10,6 +10,7 @@ Anope Version 1.8 - GIT
08/09 F Fixed deopping the first user to join a channel during a burst [#1287]
08/10 F Fixed loading bs_fantasy_owner on InspIRCd 2.0 on startup [ #00]
08/21 F Send DROP event when forbidding nicks and channels. [ #00]
11/16 F Fixed bans always comparing against real instead of vident. [ #00]
Anope Version 1.8.6
-------------------
+1 -1
View File
@@ -178,7 +178,7 @@ static void _common_unban(ChannelInfo * ci, char *nick, boolean full)
for (ban = ci->c->bans->entries; ban; ban = next) {
next = ban->next;
if ((full && entry_match(ban, u->nick, u->username, u->host, ip)) ||
entry_match(ban, u->nick, u->username, u->vhost, 0) ||
entry_match(ban, u->nick, u->vident, u->vhost, 0) ||
entry_match(ban, u->nick, u->username, u->chost, 0)) {
anope_cmd_mode(whosends(ci), ci->name, "-b %s", ban->mask);
if (ircdcap->tsmode)
+1 -1
View File
@@ -2425,7 +2425,7 @@ static Entry *_elist_match_user(EList * list, User * u, boolean full)
if (full)
res = elist_match(list, u->nick, u->username, u->host, ip);
if (!res)
res = elist_match(list, u->nick, u->username, u->vhost, 0);
res = elist_match(list, u->nick, u->vident, u->vhost, 0);
if (!res)
res = elist_match(list, u->nick, u->username, u->chost, 0);
+2 -1
View File
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="7"
VERSION_EXTRA="-git"
VERSION_BUILD="3083"
VERSION_BUILD="3084"
# $Log$ # Changes since 1.8.6 Release
#Revision 3084 - Match bans against the vident/vhost instead of real ident/vhost when available.
#Revision 3083 - Use _exit, not exit, to exit mail forks to prevent our atexit() functions from being called, and removing our pidfile
#Revision 3082 - Made os_sxline and os_akill use a stored value to curent time to prevent the off-chance of time changing while executing the function which can mess up our globops/log messages
#Revision 3081 - Added event to warn modules a nickcore gets a new display nick or is about to be dropped. (This should enable modules to more easily link their data to anopes core data.)