diff options
| author | 2007-07-26 18:44:13 +0000 | |
|---|---|---|
| committer | 2007-07-26 18:44:13 +0000 | |
| commit | 7ea099f8d1274e709a8a201a4a0e446135fbb5c5 (patch) | |
| tree | 553b089a6623d5bd9c0bc18463b32aff4ea341db /src/modules/m_cloaking.cpp | |
| parent | Forgot to add to init-list (diff) | |
| download | inspircd++-7ea099f8d1274e709a8a201a4a0e446135fbb5c5.tar.gz inspircd++-7ea099f8d1274e709a8a201a4a0e446135fbb5c5.tar.bz2 inspircd++-7ea099f8d1274e709a8a201a4a0e446135fbb5c5.zip | |
Add extra detail to m_cloaking on failure to load
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7580 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -rw-r--r-- | src/modules/m_cloaking.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 4ef903392..ff9fdc683 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -254,7 +254,19 @@ class CloakUser : public ModeHandler prefix = ServerInstance->Config->Network; if (!key1 || !key2 || !key3 || !key4) - throw ModuleException("You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED!"); + { + std::string detail; + if (!key1) + detail = "<cloak:key1> is not valid, it may be set to a too high/low value, or it may not exist."; + else if (!key2) + detail = "<cloak:key2> is not valid, it may be set to a too high/low value, or it may not exist."; + else if (!key3) + detail = "<cloak:key3> is not valid, it may be set to a too high/low value, or it may not exist."; + else if (!key4) + detail = "<cloak:key4> is not valid, it may be set to a too high/low value, or it may not exist."; + + throw ModuleException("You have not defined cloak keys for m_cloaking!!! THIS IS INSECURE AND SHOULD BE CHECKED! - " + detail); + } } }; |
