aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/cmode_b.cpp
diff options
context:
space:
mode:
authorGravatar w00t2009-01-25 19:57:07 +0000
committerGravatar w00t2009-01-25 19:57:07 +0000
commitbe542b535c647eef610bba907af47683ee14e841 (patch)
tree6b23b2a1d68069053c00db807a4b62299c86e18c /src/modes/cmode_b.cpp
parentFormat this message a little nicer. (diff)
downloadinspircd++-be542b535c647eef610bba907af47683ee14e841.tar.gz
inspircd++-be542b535c647eef610bba907af47683ee14e841.tar.bz2
inspircd++-be542b535c647eef610bba907af47683ee14e841.zip
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
Diffstat (limited to 'src/modes/cmode_b.cpp')
-rw-r--r--src/modes/cmode_b.cpp2
1 files changed, 1 insertions, 1 deletions
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 = "";