X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sethost.cpp;h=75dbe1c6a6c00f84a4ce09661b720c4327d60210;hb=63aa8d0d42f619c52d382bde3e6ba2e5e23b12ac;hp=fb9fd7f1fad84e051625abce7922a513d28a03dc;hpb=b4542af6b4c69dff7d2c28d9c435304b7d78dc38;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index fb9fd7f1f..75dbe1c6a 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -46,7 +46,7 @@ class CommandSethost : public Command } } - if (len > 64) + if (len > ServerInstance->Config->Limits.MaxHost) { user->WriteNotice("*** SETHOST: Host too long"); return CMD_FAILURE; @@ -74,13 +74,7 @@ class ModuleSetHost : public Module { } - void init() CXX11_OVERRIDE - { - OnRehash(NULL); - ServerInstance->Modules->AddService(cmd); - } - - void OnRehash(User* user) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { std::string hmap = ServerInstance->Config->ConfValue("hostname")->getString("charmap", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-_/0123456789");