X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_globalload.cpp;h=f016c563e3dfb8a8e7ebcdc1dfdbe6997762b7ec;hb=39897f56f5f84d8d4c8903fb46a03c2fdcf733ec;hp=2f39a66e6000d6e05caf8e50c3157a12827ffe81;hpb=e3bd782207f50d131acd008b0cbcc7545aac7690;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp index 2f39a66e6..f016c563e 100644 --- a/src/modules/m_globalload.cpp +++ b/src/modules/m_globalload.cpp @@ -31,7 +31,7 @@ class CommandGloadmodule : public Command { std::string servername = parameters.size() > 1 ? parameters[1] : "*"; - if (ServerInstance->MatchText(ServerInstance->Config->ServerName, servername)) + if (InspIRCd::Match(ServerInstance->Config->ServerName, servername)) { if (ServerInstance->Modules->Load(parameters[0].c_str())) { @@ -65,7 +65,7 @@ class CommandGunloadmodule : public Command { std::string servername = parameters.size() > 1 ? parameters[1] : "*"; - if (ServerInstance->MatchText(ServerInstance->Config->ServerName, servername)) + if (InspIRCd::Match(ServerInstance->Config->ServerName, servername)) { if (ServerInstance->Modules->Unload(parameters[0].c_str())) { @@ -99,7 +99,7 @@ class CommandGreloadmodule : public Command { std::string servername = parameters.size() > 1 ? parameters[1] : "*"; - if (ServerInstance->MatchText(ServerInstance->Config->ServerName, servername)) + if (InspIRCd::Match(ServerInstance->Config->ServerName, servername)) { if (!ServerInstance->Modules->Unload(parameters[0].c_str())) { @@ -124,11 +124,11 @@ class ModuleGlobalLoad : public Module CommandGloadmodule *mycommand; CommandGunloadmodule *mycommand2; CommandGreloadmodule *mycommand3; - + public: ModuleGlobalLoad(InspIRCd* Me) : Module(Me) { - + mycommand = new CommandGloadmodule(ServerInstance); mycommand2 = new CommandGunloadmodule(ServerInstance); mycommand3 = new CommandGreloadmodule(ServerInstance); @@ -137,14 +137,14 @@ class ModuleGlobalLoad : public Module ServerInstance->AddCommand(mycommand3); } - + virtual ~ModuleGlobalLoad() { } - + virtual Version GetVersion() { - return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION); + return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION); } };