From be542b535c647eef610bba907af47683ee14e841 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 25 Jan 2009 19:57:07 +0000 Subject: This can't be case sensitive because it's not consistant, and also would break having two extbans of differing case but same letter on the same mask (+bb m:f M:f). Also found courtesy of Jason. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11005 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_b.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index 34fe85867..20ff781ca 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -125,7 +125,7 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan for (BanList::iterator i = chan->bans.begin(); i != chan->bans.end(); i++) { - if (!strcasecmp(i->data.c_str(), dest.c_str())) + if (i->data == dest) { /* dont allow a user to set the same ban twice */ dest = ""; -- cgit v1.2.3