]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_b.cpp
Allow accountname to be changed without an explicit unset
[user/henk/code/inspircd.git] / src / modes / cmode_b.cpp
index 305c91ea45e100bdf46168aa402bb45c661e3694..20ff781ca274b5e67b1b19019f7fab7b2fa24a0c 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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 = "";