]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cloaking.cpp
Probably wont compile yet - purge_empty_channels refactor
[user/henk/code/inspircd.git] / src / modules / m_cloaking.cpp
index 044d511987f65bcc43b4fd3b5025ef4b8920462d..95187864f458abb3c68bf2ce9859bcd5b4199f8b 100644 (file)
@@ -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;