]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modes/cmode_b.h
Don't query module version prior to init; fixes valgrind segfault
[user/henk/code/inspircd.git] / include / modes / cmode_b.h
index 42f9fb8a84c480c1df68c45ca8a14f666c36afdb..642ee7216de1fa860d96581135756441b586317a 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -23,13 +23,12 @@ class ModeChannelBan : public ModeHandler
  private:
        BanItem b;
  public:
-       ModeChannelBan(InspIRCd* Instance);
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode);
-       std::string& AddBan(User *user,std::string& dest,Channel *chan,int status, bool servermode);
+       ModeChannelBan();
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);
+       std::string& AddBan(User *user,std::string& dest,Channel *chan,int status);
        std::string& DelBan(User *user,std::string& dest,Channel *chan,int status);
        void DisplayList(User* user, Channel* channel);
        void DisplayEmptyList(User* user, Channel* channel);
-       ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string &parameter);
        void RemoveMode(User* user, irc::modestacker* stack = NULL);
        void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
 };