]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channelban.cpp
GnuTLS: Send SSL client certificate when requested
[user/henk/code/inspircd.git] / src / modules / m_channelban.cpp
index 8caae0a961bada8281296af786d1c27617f90cb7..727ab15a39b05c898df0f2eea86c09c7771ad4ff 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -25,27 +25,27 @@ class ModuleBadChannelExtban : public Module
                ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
-       virtual ~ModuleBadChannelExtban()
+       ~ModuleBadChannelExtban()
        {
        }
 
-       virtual Version GetVersion()
+       Version GetVersion()
        {
                return Version("$Id$", VF_COMMON|VF_VENDOR,API_VERSION);
        }
 
-       virtual int OnCheckBan(User *user, Channel *c)
+       ModResult OnCheckBan(User *user, Channel *c)
        {
-               int rv = 0;
+               ModResult rv;
                for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
                {
-                       rv = banmatch_reduce(rv, c->GetExtBanStatus(i->first->name, 'j'));
+                       rv = rv + c->GetExtBanStatus((*i)->name, 'j');
                }
 
                return rv;
        }
 
-       virtual void On005Numeric(std::string &output)
+       void On005Numeric(std::string &output)
        {
                ServerInstance->AddExtBanChar('j');
        }