class cmd_helpop : public command_t
{
public:
- cmd_helpop () : command_t("HELPOP",0,0)
+ cmd_helpop () : command_t("HELPOP",0,1)
{
this->source = "m_helpop.so";
}
char a[MAXBUF];
int nlines = 0;
- if (!parameters)
+ if (!pcnt)
{
search = "start";
}
std::string err;
public:
HelpopException(std::string message) : err(message) { }
- virtual char* GetReason() { return (char*)err.c_str(); }
+ virtual const char* GetReason() { return err.c_str(); }
};
class ModuleHelpop : public Module
virtual void OnRehash(const std::string ¶meter)
{
- delete conf;
+ DELETE(conf);
if (helpop)
- delete helpop;
+ DELETE(helpop);
ReadConfig();
}
virtual ~ModuleHelpop()
{
- delete conf;
- delete helpop;
+ DELETE(conf);
+ DELETE(helpop);
}
virtual Version GetVersion()