]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cgiirc.cpp
Modify chanlog to send message remotely, too. Logging now works server <-> server...
[user/henk/code/inspircd.git] / src / modules / m_cgiirc.cpp
index 53fdb6ff7fc6f6bc8478aac01d1a6a2a5f62e32c..3ad4e5f7004252593928cd005ff4f98c16e6a128 100644 (file)
@@ -53,17 +53,15 @@ typedef std::vector<CGIhost> CGIHostlist;
  */
 class CommandWebirc : public Command
 {
-       // XXX why is inspircd declared here? does class command not have one?
-       InspIRCd* Me;
        CGIHostlist Hosts;
        bool notify;
        public:
-               CommandWebirc(InspIRCd* iMe, CGIHostlist &cHosts, bool bnotify) : Command(iMe, "WEBIRC", 0, 4, true), Hosts(cHosts), notify(bnotify)
+               CommandWebirc(InspIRCd* Instance, CGIHostlist &cHosts, bool bnotify) : Command(Instance, "WEBIRC", 0, 4, true), Hosts(cHosts), notify(bnotify)
                {
                        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;
@@ -174,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
                                {
@@ -198,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;
                        }
                }
@@ -521,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);
        }
        
 };