summaryrefslogtreecommitdiff
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 3921b7f72..4b3526240 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -138,6 +138,11 @@ class ModuleHelpop : public Module
{
Srv = new Server;
conf = new ConfigReader;
+ if (conf->GetError())
+ {
+ // dump errors and ABORT
+ conf->DumpErrors(true,NULL);
+ }
h_file = conf->ReadValue("helpop", "file", 0);
@@ -147,19 +152,14 @@ class ModuleHelpop : public Module
}
helpop = new ConfigReader(h_file);
- if (!helpop->Verify())
- {
- printf("m_helpop: Invalid Helpop File. Please Ensure it exists and is error free.");
- exit(0);
- }
- /*if ((helpop->ReadValue("nohelp", "line1", 0) == "") ||
+ if ((helpop->ReadValue("nohelp", "line1", 0) == "") ||
(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);
- }*/
+ }
if (!Srv->AddExtendedMode('h',MT_CLIENT,true,0,0))
{