]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_helpop.cpp
Moved a ton of functions into helperfuncs.h to speed up recompiles
[user/henk/code/inspircd.git] / src / modules / m_helpop.cpp
index 1798122b20384da0effc7994d51683ca26d34563..bae4e73aefd1085cf1bea1e66bd7821419949c91 100644 (file)
@@ -17,6 +17,7 @@
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
+#include "helperfuncs.h"
 
 // Global Vars
 ConfigReader *helpop;
@@ -141,8 +142,8 @@ class ModuleHelpop : public Module
                h_file = conf->ReadValue("helpop", "file", 0);
 
                if (h_file == "") {
-                       printf("m_helpop: Helpop file not Specified.");
-                       exit(0);
+                       log(DEFAULT,"m_helpop: Helpop file not Specified.");
+                       return;
                }
 
                helpop = new ConfigReader(h_file);
@@ -151,15 +152,14 @@ class ModuleHelpop : public Module
                     (helpop->ReadValue("nohelpo", "line1", 0) == "") ||
                     (helpop->ReadValue("start",   "line1", 0) == ""))
                {
-                       printf("m_helpop: Helpop file is missing important entries. Please check the example conf.");
-                       exit(0);
+                       log(DEFAULT,"m_helpop: Helpop file is missing important entries. Please check the example conf.");
+                       return;
                }
 
                if (!Srv->AddExtendedMode('h',MT_CLIENT,true,0,0))
                {
                        Srv->Log(DEFAULT,"Unable to claim the +h usermode.");
-                       printf("m_helpop: Unable to claim the +h usermode!");
-                       exit(0);
+                       return;
                }
 
                // Loads of comments, untill supported properly.
@@ -201,7 +201,7 @@ class ModuleHelpop : public Module
        
        virtual Version GetVersion()
        {
-               return Version(0,0,0,1,VF_STATIC|VF_VENDOR);
+               return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
        }
 };