summaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-28 21:13:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-28 21:13:27 +0000
commitddf20891da9fb872ef1387f7ea9c69eda0e12c0c (patch)
treebe248f21b710d929a0f368758cf02d2a848fa223 /src/modules/m_cloaking.cpp
parentb3a310c286e0ffd8e8b7f1f0282cafb4522cb8d1 (diff)
Changed to throw exception when theres no cloak key
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3389 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 718ee25d9..95187864f 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -316,12 +316,8 @@ class ModuleCloaking : public Module
}
if (!key1 && !key2 && !key3 && !key4)
{
- key1 = 0x67452301;
- key2 = 0xefcdab89;
- key3 = 0x98badcfe;
- key4 = 0x10325476;
- Srv->Log(SPARSE,"WARNING! You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED!");
- Srv->Log(SPARSE,"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;