]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_pgsql.cpp
Allow Timers to delete themselves in Tick()
[user/henk/code/inspircd.git] / src / modules / extra / m_pgsql.cpp
index 2300c9d5b2dc2b9505a2c58da165bc04adf4eb18..b3b7d43dfd45444e46fa5001d54413e4ccdf2bfa 100644 (file)
@@ -508,18 +508,13 @@ class ModulePgSQL : public Module
        {
        }
 
-       void init() CXX11_OVERRIDE
-       {
-               ReadConf();
-       }
-
        ~ModulePgSQL()
        {
                delete retimer;
                ClearAllConnections();
        }
 
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                ReadConf();
        }
@@ -598,6 +593,7 @@ bool ReconnectTimer::Tick(time_t time)
 {
        mod->retimer = NULL;
        mod->ReadConf();
+       delete this;
        return false;
 }