]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Fix m_chanlog crashing.
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index 9d9a4007ec0b698d1054ac381e89611ea4f99e97..1077e65a720e293d0915f5675c729b60a117fdfc 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -65,7 +65,7 @@ class ModuleDelayJoin : public Module
                : Module(Me)
        {
                djm = new DelayJoinMode(ServerInstance, this);
-               if (!ServerInstance->AddMode(djm))
+               if (!ServerInstance->Modes->AddMode(djm))
                        throw ModuleException("Could not add new modes!");
                Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnUserList, I_OnText };
                ServerInstance->Modules->Attach(eventlist, this, 6);