diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 15:39:54 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 15:39:54 +0000 |
commit | db137fc40e1ff3dd19bbc447f54f0c5489020d44 (patch) | |
tree | 03389a0d8e4dee7676e9c5d1515f48b5d7bff785 /src/modules | |
parent | e21214f274c9bd4e831c3512e3365d16d79ef8d2 (diff) |
Forward port crash fix on load of randquote from 1.1 (r8819).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8820 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_randquote.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 7dd3303a8..1c794f7dd 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -52,23 +52,6 @@ class CommandRandquote : public Command } }; -/** Thrown by m_randquote - */ -class RandquoteException : public ModuleException -{ - private: - const std::string err; - public: - RandquoteException(const std::string &message) : err(message) { } - - ~RandquoteException() throw () { } - - virtual const char* GetReason() - { - return err.c_str(); - } -}; - class ModuleRandQuote : public Module { private: @@ -91,14 +74,14 @@ class ModuleRandQuote : public Module if (q_file.empty()) { - RandquoteException e("m_randquote: Quotefile not specified - Please check your config."); + CoreException e("m_randquote: Quotefile not specified - Please check your config."); throw(e); } quotes = new FileReader(ServerInstance, q_file); if(!quotes->Exists()) { - RandquoteException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function."); + CoreException e("m_randquote: QuoteFile not Found!! Please check your config - module will not function."); throw(e); } else |