]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
AMD64 warning 'fix' which tested fine when I added it seems to now...stop things...
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index 044d511987f65bcc43b4fd3b5025ef4b8920462d..cddf2778d0dd33b6ba92b85d96dd4fabafa37d92 100644 (file)
@@ -301,7 +301,7 @@ class ModuleCloaking : public Module
                return Version(1,0,0,1,VF_STATIC|VF_VENDOR);
        }
 
-       virtual void OnRehash(std::string parameter)
+       virtual void OnRehash(const std::string &parameter)
        {
                ConfigReader* Conf = new ConfigReader();
                key1 = key2 = key3 = key4 = 0;
@@ -316,12 +316,8 @@ class ModuleCloaking : public Module
                }
                if (!key1 && !key2 && !key3 && !key4)
                {
-                       key1 = 0x67452301;
-                       key2 = 0xefcdab89;
-                       key3 = 0x98badcfe;
-                       key4 = 0x10325476;
-                       Srv->Log("WARNING! You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED!");
-                       Srv->Log("Using default builtin keys (INSECURE): 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476");
+                       ModuleException ex("You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED!");
+                       throw (ex);
                }
 
                /*ctx->buf[0] = 0x67452301;