char a[MAXBUF];
std::string output = " ";
- if (parameters[0] == "") { do_helpop(NULL,pcnt,user); }
+ if (pcnt < 1) {
+ do_helpop(NULL,pcnt,user);
+ return;
+ }
+
+ // FIX by brain: make the string lowercase, ConfigReader is
+ // case sensitive
+ char* lower = parameters[0];
+ for (int t = 0; t < strlen(lower); t++)
+ lower[t] = tolower(lower[t]);
if (parameters[0][0] == '!')
{
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))
{