summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-06 22:55:21 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-06 22:55:21 +0000
commit0761d4f74bc47191e9dde4591cc3a8a46878b4d0 (patch)
treea893de087bc93cef5825e481ac7aec9423fd7ab5 /src/botserv.c
parente34448092eb668aec1ea73e7d5aab0ef536b5520 (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/botserv.c')
-rw-r--r--src/botserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 148d71b97..faf6bf3b8 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -630,7 +630,7 @@ void bot_join(ChannelInfo * ci)
{
next = ban->next;
- if (entry_match(ban, ci->bi->nick, ci->bi->user, ci->bi->host, 0))
+ if (entry_match(ban, ci->bi->nick.c_str(), ci->bi->user.c_str(), ci->bi->host.c_str(), 0))
{
ci->c->RemoveMode(NULL, CMODE_BAN, ban->mask);
}