]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_noinvite.cpp
Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy...
[user/henk/code/inspircd.git] / src / modules / m_noinvite.cpp
index e174d244699140d69c16b7f8bd8b6164187e119b..cff191db061eb5b4b4c6dce90641ab5418ddff06 100644 (file)
@@ -51,14 +51,14 @@ class ModuleNoInvite : public Module
        ModuleNoInvite(InspIRCd* Me) : Module(Me)
        {
                ni = new NoInvite(ServerInstance);
-               if (!ServerInstance->AddMode(ni))
+               if (!ServerInstance->Modes->AddMode(ni))
                        throw ModuleException("Could not add new modes!");
                Implementation eventlist[] = { I_OnUserPreInvite };
                ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
 
-       virtual int OnUserPreInvite(User* user,User* dest,Channel* channel)
+       virtual int OnUserPreInvite(User* user,User* dest,Channel* channel, time_t timeout)
        {
                if (channel->IsModeSet('V'))
                {