#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;
virtual ~ModuleHostChange()
{
- delete Conf;
+ DELETE(Conf);
}
Priority Prioritize()
virtual void OnRehash(const std::string ¶meter)
{
- 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++)