]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
A little less debug saying WEEEE :]
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index d5af7fdfb1ca0e91f4115f36a8e904902b89e908..0bf9595e4257c1fc81c2b0a90b4405d9855a76b7 100644 (file)
@@ -23,7 +23,7 @@ class DelayJoinMode : public ModeHandler
  public:
        DelayJoinMode(InspIRCd* Instance, Module* Parent) : ModeHandler(Instance, 'D', 0, 0, false, MODETYPE_CHANNEL, false), Creator(Parent) { }
 
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool)
        {
                if (channel->IsModeSet('D') != adding)
                {
@@ -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);