]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_globalload.cpp
Add server ports to ServerInstance->ports, enable SSL on them using OnHookIO
[user/henk/code/inspircd.git] / src / modules / m_globalload.cpp
index 19359a976501a018b7cdd6b9121587e09a220b98..636b9f4e4ab10cb404db4f61c27598de8ff39af2 100644 (file)
@@ -30,7 +30,7 @@ class CommandGloadmodule : public Command
        {
                std::string servername = parameters.size() > 1 ? parameters[1] : "*";
 
-               if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+               if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
                {
                        if (ServerInstance->Modules->Load(parameters[0].c_str()))
                        {
@@ -68,7 +68,7 @@ class CommandGunloadmodule : public Command
        {
                std::string servername = parameters.size() > 1 ? parameters[1] : "*";
 
-               if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+               if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
                {
                        if (ServerInstance->Modules->Unload(parameters[0].c_str()))
                        {
@@ -106,7 +106,7 @@ class CommandGreloadmodule : public Command
        {
                std::string servername = parameters.size() > 1 ? parameters[1] : "*";
 
-               if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+               if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
                {
                        bool ok = true;
                        if (!ServerInstance->Modules->Unload(parameters[0].c_str()))
@@ -142,8 +142,8 @@ class ModuleGlobalLoad : public Module
        CommandGreloadmodule cmd3;
 
  public:
-       ModuleGlobalLoad(InspIRCd* Me)
-               : Module(Me), cmd1(this), cmd2(this), cmd3(this)
+       ModuleGlobalLoad()
+               : cmd1(this), cmd2(this), cmd3(this)
        {
                ServerInstance->AddCommand(&cmd1);
                ServerInstance->AddCommand(&cmd2);