diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-05-13 02:18:33 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-05-13 02:18:33 +0000 |
commit | 78ec14490c922588e2c2a9c47c01518b33a677b7 (patch) | |
tree | 4c4991ae7ddfa1143373472e9e8364027fba7348 /src/modules/m_cloaking.cpp | |
parent | 6075913736e98354c007728658506c93e3503f0b (diff) |
Fix an issue in r11370 spotted by danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11371 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r-- | src/modules/m_cloaking.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 1b6d2b6bb..8bba9ceda 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -243,6 +243,11 @@ class CloakUser : public ModeHandler throw ModuleException("You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED! - " + detail); } + else if (key1 == 0x01234567 || key2 == 0x01234567 || key3 == 0x01234567 || key4 = 0x01234567) + { + /* Simple test to see if the config was changed from the values in the example config, as these would be very insecure. */ + throw ModuleException("You did not change the cloak keys for m_cloaking! You must randomly create your own keys in the <cloak> tag."); + } } }; |