]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
kick_channel -> chanrec::KickUser(), server_kick_channel -> chanrec::ServerKickUser()
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index a4a5a8b08db6ff24446dadd42b56a88a4da5aef2..de485b2c03e9c456917ab460ee3f3c4ea952d80c 100644 (file)
@@ -20,10 +20,11 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
+#include "inspircd.h"
 
 /* $ModDesc: Provides masking of user hostnames in a different way to m_cloaking */
 
-class Host
+class Host : public classbase
 {
  public:
        std::string action;
@@ -52,7 +53,7 @@ class ModuleHostChange : public Module
        
        virtual ~ModuleHostChange()
        {
-               delete Conf;
+               DELETE(Conf);
        }
 
        Priority Prioritize()
@@ -67,12 +68,12 @@ class ModuleHostChange : public Module
 
        virtual void OnRehash(const std::string &parameter)
        {
-               delete Conf;
+               DELETE(Conf);
                Conf = new ConfigReader;
                MySuffix = Conf->ReadValue("host","suffix",0);
                for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++)
                {
-                       delete i->second;
+                       DELETE(i->second);
                }
                hostchanges.clear();
                for (int index = 0; index < Conf->Enumerate("hostchange"); index++)