summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 02:52:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 02:52:43 +0000
commit0340f1a432d684347d8dbc3aa85c8436c56d4039 (patch)
tree0da4a282f28b42d5447ff2ee6f645c7936cf4383 /src/modules
parent0825e274f6e047c3e948334b8fdbc0189dba3e32 (diff)
Added a lot of config error checking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@898 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-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))
{