X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_vhost.cpp;h=f1a074aec8aeb79f569c65c916658ba8547e3d57;hb=de25d946733f774e3a5b53a58438a9c92af0acbe;hp=419b51c9b7a6f2c7565d0f8728196df136696cd4;hpb=24731c63b6320be22f7b3220236271fa7476b975;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 419b51c9b..f1a074aec 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -20,14 +20,14 @@ class CommandVhost : public Command { public: - CommandVhost (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"VHOST", 0, 2) + CommandVhost(Module* Creator) : Command(Creator,"VHOST", 2) { syntax = " "; } CmdResult Handle (const std::vector ¶meters, User *user) { - ConfigReader *Conf = new ConfigReader(ServerInstance); + ConfigReader *Conf = new ConfigReader; for (int index = 0; index < Conf->Enumerate("vhost"); index++) { @@ -43,7 +43,7 @@ class CommandVhost : public Command user->WriteServ("NOTICE "+std::string(user->nick)+" :Setting your VHost: " + mask); user->ChangeDisplayedHost(mask.c_str()); delete Conf; - return CMD_LOCALONLY; + return CMD_SUCCESS; } } } @@ -60,7 +60,7 @@ class ModuleVHost : public Module CommandVhost cmd; public: - ModuleVHost(InspIRCd* Me) : Module(Me), cmd(Me, this) + ModuleVHost() : cmd(this) { ServerInstance->AddCommand(&cmd); } @@ -72,7 +72,7 @@ class ModuleVHost : public Module virtual Version GetVersion() { - return Version("$Id$",VF_VENDOR,API_VERSION); + return Version("Provides masking of user hostnames via traditional /VHOST command",VF_VENDOR,API_VERSION); } };