diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-01 16:59:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-01 16:59:20 +0000 |
commit | ef79134812eb0f3ef024fe57519dce05ec4fb401 (patch) | |
tree | ca94c4fdebfd5e25c36bd7a0074a1fb31c5f3186 /src/modules/m_randquote.cpp | |
parent | 0c22834719799f80eaec3026621e4076f793ec37 (diff) |
Some modules throw CoreException, this is wrong wrongitty wrong! Throw ModuleException instead.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9598 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_randquote.cpp')
-rw-r--r-- | src/modules/m_randquote.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 02572e7de..0353ae939 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -74,15 +74,13 @@ class ModuleRandQuote : public Module if (q_file.empty()) { - CoreException e("m_randquote: Quotefile not specified - Please check your config."); - throw(e); + throw ModuleException("m_randquote: Quotefile not specified - Please check your config."); } quotes = new FileReader(ServerInstance, q_file); if(!quotes->Exists()) { - CoreException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function."); - throw(e); + throw ModuleException("m_randquote: QuoteFile not Found!! Please check your config - module will not function."); } else { |