From db137fc40e1ff3dd19bbc447f54f0c5489020d44 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 4 Feb 2008 15:39:54 +0000 Subject: 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 --- src/modules/m_randquote.cpp | 21 ++------------------- 1 file 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 -- cgit v1.2.3