From aad43006cf817b6c508c45adb2e592f9ba01704a Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Thu, 8 Apr 2004 18:50:20 +0000 Subject: Removed my humourous Error messages (Replaced them with Useful Text) Fixed bug which caused 'Invalid Parameters' Error Removed some redundant code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@460 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_helpop.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index 750362a51..6696b59d2 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -118,14 +118,14 @@ class ModuleHelpop : public Module h_file = conf->ReadValue("helpop", "file", 0); if (h_file == "") { - printf("WE ARE AAAAALL GONNA DIEEEEEEEEEEEE!!"); + printf("m_helpop: Helpop file not Specified."); exit(0); } helpop = new ConfigReader(h_file); if (!helpop->Verify()) { - printf("Thats it.. were all dead."); + printf("m_helpop: Invalid Helpop File. Please Ensure it exists and is error free."); exit(0); } @@ -133,21 +133,22 @@ class ModuleHelpop : public Module (helpop->ReadValue("nohelpo", "line1", 0) == "") || (helpop->ReadValue("start", "line1", 0) == "")) { - printf("m_helpop: Important Shit Missing. Please check your file."); + 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)) { - Srv->Log(DEFAULT,"pr0n Found. Send it to Craig@chatspike.net for investigation."); - printf("Could not claim usermode +h for this module!"); + Srv->Log(DEFAULT,"Unable to clame the +h usermode."); + printf("m_helpop: Unable to claim the +h usermode!"); exit(0); } - /*if (!*/Srv->AddCommand("HELPOP",handle_helpop,0,1);/*) + // Loads of comments, untill supported properly. + /*if (!*/Srv->AddCommand("HELPOP",handle_helpop,0,0);/*) { - Srv->Log(DEFAULT,"Someone br0ked it.. not me"); - printf("B0RKED! JUMP SHIP.. AAAAAAAAAAAAAAAAAHHHHHH!"); + Srv->Log(DEFAULT,"Unable to claim the HELPOP command."); + printf("m_helpop: Unable to claim the HELPOP command."); exit(0); }*/ -- cgit v1.2.3