]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banredirect.cpp
Fix m_chanlog crashing.
[user/henk/code/inspircd.git] / src / modules / m_banredirect.cpp
index 99aa7b155e9a0d557ba1bd0c71808ccdb15c9fa1..6517da0a2e8438be0db872a93c01f06545d0b3e7 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");