X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_opermotd.cpp;h=b4a85e8890270efb39e65c5411361a708c200b74;hb=2330fc9ddd48c939e894e7e37e9bb2e62eafc38d;hp=0cf4efdc04ce57c5c50b3e4265a9546a28cf6881;hpb=e2e581f0d3d5d844dc4b5210f566e5a5571a0570;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 0cf4efdc0..b4a85e889 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -21,7 +21,7 @@ void LoadOperMOTD() filename = conf->ReadValue("opermotd","file",0); opermotd->LoadFile(filename); - delete conf; + DELETE(conf); } void ShowOperMOTD(userrec* user) @@ -51,7 +51,7 @@ class cmd_opermotd : public command_t this->source = "m_opermotd.so"; } - void Handle (char** parameters, int pcnt, userrec* user) + void Handle (const char** parameters, int pcnt, userrec* user) { ShowOperMOTD(user); } @@ -85,12 +85,12 @@ class ModuleOpermotd : public Module List[I_OnRehash] = List[I_OnOper] = 1; } - virtual void OnOper(userrec* user, std::string opertype) + virtual void OnOper(userrec* user, const std::string &opertype) { ShowOperMOTD(user); } - virtual void OnRehash(std::string parameter) + virtual void OnRehash(const std::string ¶meter) { LoadOperMOTD(); }