diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-25 19:57:07 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-25 19:57:07 +0000 |
commit | be542b535c647eef610bba907af47683ee14e841 (patch) | |
tree | 6b23b2a1d68069053c00db807a4b62299c86e18c /src | |
parent | 4eb76208a2997830a42c7d7038c929f753b8dd18 (diff) |
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')
-rw-r--r-- | src/modes/cmode_b.cpp | 2 |
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 = ""; |