char hostmap[256];
public:
ModuleChgHost() : cmd(this, hostmap)
+ {
+ }
+
+ void init()
{
OnRehash(NULL);
ServerInstance->AddCommand(&cmd);
ServerInstance->Modules->Attach(eventlist, this, 1);
}
-
void OnRehash(User* user)
{
std::string hmap = ServerInstance->Config->ConfValue("hostname")->getString("charmap", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-_/0123456789");