]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cgiirc.cpp
Hosts vector not cleared on rehash, made rehashing for changes impossible
[user/henk/code/inspircd.git] / src / modules / m_cgiirc.cpp
index 633e95af9601597ff18c443926f21533d6cafffe..7860b8a6e99dd0612c3e9f4bffc3ae452a0932b0 100644 (file)
@@ -157,6 +157,7 @@ public:
        virtual void OnRehash(User* user, const std::string &parameter)
        {
                ConfigReader Conf(ServerInstance);
+               Hosts.clear();
                
                NotifyOpers = Conf.ReadFlag("cgiirc", "opernotice", 0); // If we send an oper notice when a CGI:IRC has their host changed.
                
@@ -172,7 +173,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 +197,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 +520,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);
        }
        
 };