#include "users.h"
#include "channels.h"
#include "modules.h"
+#include "helperfuncs.h"
// Global Vars
ConfigReader *helpop;
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);
(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.
- Srv->AddCommand("HELPOP",handle_helpop,0,0);
+ Srv->AddCommand("HELPOP",handle_helpop,0,0,"m_helpop.so");
}
virtual Version GetVersion()
{
- return Version(0,0,0,1);
+ return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
}
};