]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globalload.cpp
Change /CHECK <#channel> to correctly report timestamp since it might have been TS...
[user/henk/code/inspircd.git] / src / modules / m_globalload.cpp
index 2f39a66e6000d6e05caf8e50c3157a12827ffe81..470ac1098a4d41f610b0f7b883aaf88bf467ae55 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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);
        }
 };