From ddf20891da9fb872ef1387f7ea9c69eda0e12c0c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Feb 2006 21:13:27 +0000 Subject: 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 --- src/modules/m_cloaking.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/modules') 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; -- cgit v1.2.3