X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sethost.cpp;h=f6e38c2136bc6e515d5501caeeb90be4a284c2a8;hb=8be88f3e732e7a40f2e501c5e5b78c7f1b999f2d;hp=552d4f034d7f2bf2de49c026b3588d970f1a67e6;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 552d4f034..f6e38c213 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -53,7 +53,7 @@ class CommandSethost : public Command if (user->ChangeDisplayedHost(parameters[0].c_str())) { - ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost); + ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost); return CMD_LOCALONLY; } @@ -70,7 +70,7 @@ class ModuleSetHost : public Module ModuleSetHost(InspIRCd* Me) : Module(Me) { - OnRehash(NULL,""); + OnRehash(NULL); mycommand = new CommandSethost(ServerInstance, hostmap); ServerInstance->AddCommand(mycommand); Implementation eventlist[] = { I_OnRehash }; @@ -78,7 +78,7 @@ class ModuleSetHost : public Module } - void OnRehash(User* user, const std::string ¶meter) + void OnRehash(User* user) { ConfigReader Conf(ServerInstance); std::string hmap = Conf.ReadValue("hostname", "charmap", 0); @@ -97,7 +97,7 @@ class ModuleSetHost : public Module virtual Version GetVersion() { - return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } };