summaryrefslogtreecommitdiff
path: root/src/modules/m_randquote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_randquote.cpp')
-rw-r--r--src/modules/m_randquote.cpp21
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