]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
Fix m_chanlog crashing.
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index 878ff30d36b4364ac02404923a478a4958393e43..56f908dccf62fd31abe7f2b6480ff68dd8f01adf 100644 (file)
@@ -58,7 +58,7 @@ public:
        {
                OnRehash(NULL,"");
                bc = new BlockCaps(ServerInstance);
-               if (!ServerInstance->AddMode(bc))
+               if (!ServerInstance->Modes->AddMode(bc))
                {
                        delete bc;
                        throw ModuleException("Could not add new modes!");