X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_cloaking.cpp;h=f26e16e0e2edb7cb25a204ef0cba60f88d08c138;hb=40e990ed06126c1ba6164738527127d1f58fc032;hp=fcda8881a56a439a5c3179dc5bf287e5fb1d995e;hpb=12737ab4ad61a0d8a908c8a21594c7012e21eb3c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index fcda8881a..f26e16e0e 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -348,7 +348,7 @@ class CloakUser : public ModeHandler // else, they have an ip b = std::string(ra) + "." + prefix + ".cloak"; } - log(DEBUG,"cloak: allocated "+b); + ServerInstance->Log(DEBUG,"cloak: allocated "+b); dest->ChangeDisplayedHost(b.c_str()); } @@ -416,6 +416,7 @@ class ModuleCloaking : public Module virtual ~ModuleCloaking() { + ServerInstance->Modes->DelMode(cu); DELETE(cu); } @@ -423,7 +424,7 @@ class ModuleCloaking : public Module { // returns the version number of the module to be // listed in /MODULES - return Version(1,0,0,2,VF_STATIC|VF_VENDOR); + return Version(1,0,0,2,VF_COMMON|VF_VENDOR); } virtual void OnRehash(const std::string ¶meter)