#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;
: Module::Module(Me)
{
Srv = Me;
- Conf = new ConfigReader;
+ Conf = new ConfigReader;
OnRehash("");
}
virtual ~ModuleHostChange()
{
- delete Conf;
+ DELETE(Conf);
}
Priority Prioritize()
List[I_OnRehash] = List[I_OnUserConnect] = 1;
}
- virtual void OnRehash(std::string parameter)
+ 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++)