]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_b.cpp
This file *BROKEN AGAIN* in windows builds (VC9) - uint_16t and uint_32t do not exist...
[user/henk/code/inspircd.git] / src / modes / cmode_b.cpp
index 157b3b35c5a08a5747f31eae9b5f953cebf98e0d..dad47a67bce878be86fd7fd4685834fa4f772a90 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -108,7 +108,7 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan
                return dest;
 
        long maxbans = chan->GetMaxBans();
-       if ((unsigned)chan->bans.size() > (unsigned)maxbans)
+       if (!IS_LOCAL(user) && ((unsigned)chan->bans.size() > (unsigned)maxbans))
        {
                user->WriteServ("478 %s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)",user->nick.c_str(), chan->name.c_str(), chan->name.c_str(), maxbans);
                dest = "";
@@ -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 = "";