]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banredirect.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_banredirect.cpp
index 99aa7b155e9a0d557ba1bd0c71808ccdb15c9fa1..56be984b665c3b206a301cc82d3353fe92039c41 100644 (file)
@@ -193,7 +193,7 @@ class ModuleBanRedirect : public Module
                re = new BanRedirect(Me);
                nofollow = false;
                
-               if(!ServerInstance->AddModeWatcher(re))
+               if(!ServerInstance->Modes->AddModeWatcher(re))
                {
                        delete re;
                        throw ModuleException("Could not add mode watcher");
@@ -258,7 +258,7 @@ class ModuleBanRedirect : public Module
                ExceptionModule = ServerInstance->Modules->Find("m_banexception.so");
        }
 
-       virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, bool synching = false)
+       virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs)
        {
                /* This prevents recursion when a user sets multiple ban redirects in a chain
                 * (thanks Potter)