X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_banredirect.cpp;h=6517da0a2e8438be0db872a93c01f06545d0b3e7;hb=f51d9ad5ab7015f78a29039ca7ed169b281ff6bb;hp=99aa7b155e9a0d557ba1bd0c71808ccdb15c9fa1;hpb=e4acbc95b8b6cd5b28d38a2242c02e8ff4991e4a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 99aa7b155..6517da0a2 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -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");