]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
Remove the intercomm system since sqlite is synchronous.
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index a9f7b3b0742aa5e61bd996b3a8cd0da3936e9aa6..a4956f05f35f0cd1d556a0f52352bdee70d14294 100644 (file)
@@ -63,17 +63,12 @@ class ModuleOpermotd : public Module
 
        void LoadOperMOTD()
        {
-               ConfigReader* conf = new ConfigReader;
+               ConfigReader conf;
                std::string filename;
-               filename = conf->ReadValue("opermotd","file",0);
-               if (opermotd)
-               {
-                       delete opermotd;
-                       opermotd = NULL;
-               }
+               filename = conf.ReadValue("opermotd","file",0);
+               delete opermotd;
                opermotd = new FileReader(filename);
-               onoper = conf->ReadFlag("opermotd","onoper","yes",0);
-               delete conf;
+               onoper = conf.ReadFlag("opermotd","onoper","yes",0);
        }
 
        ModuleOpermotd()