]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_mlock.cpp
m_mysql Fix crash on rehash when the database tags have been changed in the config
[user/henk/code/inspircd.git] / src / modules / m_mlock.cpp
index 3fb60a3d273ae029aa50209a7a6e2059999532d1..719701d02beee2018aeaeef16d01d51c84d77dd1 100644 (file)
@@ -32,7 +32,7 @@ public:
        void init()
        {
                ServerInstance->Modules->Attach(I_OnPreMode, this);
-               ServerInstance->Extensions.Register(&this->mlock);
+               ServerInstance->Modules->AddService(this->mlock);
        }
 
        Version GetVersion()