]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cgiirc.cpp
Should now work with ports bound to all interfaces
[user/henk/code/inspircd.git] / src / modules / m_cgiirc.cpp
index c1f6cf89e8c8ae370448371b7aac510075fd9c67..3ad4e5f7004252593928cd005ff4f98c16e6a128 100644 (file)
@@ -61,7 +61,7 @@ class CommandWebirc : public Command
                        this->source = "m_cgiirc.so";
                        this->syntax = "password client hostname ip";
                }
-               CmdResult Handle(const char** parameters, int pcnt, User *user)
+               CmdResult Handle(const char* const* parameters, int pcnt, User *user)
                {
                        if(user->registered == REG_ALL)
                                return CMD_FAILURE;
@@ -172,7 +172,7 @@ public:
                        if(hostmask.length())
                        {
                                if (type == "webirc" && !password.length()) {
-                                               ServerInstance->Log(DEFAULT, "m_cgiirc: Missing password in config: %s", hostmask.c_str());
+                                               ServerInstance->Logs->Log("CONFIG",DEFAULT, "m_cgiirc: Missing password in config: %s", hostmask.c_str());
                                }
                                else
                                {
@@ -196,7 +196,7 @@ public:
                        }
                        else
                        {
-                               ServerInstance->Log(DEFAULT, "m_cgiirc.so: Invalid <cgihost:mask> value in config: %s", hostmask.c_str());
+                               ServerInstance->Logs->Log("CONFIG",DEFAULT, "m_cgiirc.so: Invalid <cgihost:mask> value in config: %s", hostmask.c_str());
                                continue;
                        }
                }
@@ -519,7 +519,7 @@ public:
         
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_VENDOR,API_VERSION);
        }
        
 };