diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-06 22:55:21 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-06 22:55:21 +0000 |
commit | 0761d4f74bc47191e9dde4591cc3a8a46878b4d0 (patch) | |
tree | a893de087bc93cef5825e481ac7aec9423fd7ab5 /src/modes.cpp | |
parent | e34448092eb668aec1ea73e7d5aab0ef536b5520 (diff) |
Fix crash caused by trying to add an akick to a channel when certain types of exceptions are set, this also fixes entry_match to match with case insensitivity, as bans/excepts/invexs arent case sensitive
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2738 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modes.cpp')
-rw-r--r-- | src/modes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes.cpp b/src/modes.cpp index 8d4f99d05..dd608af43 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -241,7 +241,7 @@ void ChannelModeBan::AddMask(Channel *chan, const char *mask) { BotInfo *bi = chan->ci->bi; - if (entry_match(ban, bi->nick, bi->user, bi->host, 0)) + if (entry_match(ban, bi->nick.c_str(), bi->user.c_str(), bi->host.c_str(), 0)) { ircdproto->SendMode(bi, chan, "-b %s", mask); entry_delete(chan->bans, ban); |