From 205108cd4ecedc623b89bc37d2429f15eb4c0a73 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 16 Dec 2006 09:58:45 +0000 Subject: Get rid of HelpopException, use ModuleException thats had reasons for ages now git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6009 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_helpop.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'src/modules/m_helpop.cpp') diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index cc78c3257..8e7c4f0f1 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -99,18 +99,6 @@ class cmd_helpop : public command_t } }; -/** Thrown by m_helpop - */ -class HelpopException : public ModuleException -{ - private: - std::string err; - public: - HelpopException(std::string message) : err(message) { } - ~HelpopException() throw() { }; - virtual const char* GetReason() { return err.c_str(); } -}; - class ModuleHelpop : public Module { private: @@ -142,8 +130,7 @@ class ModuleHelpop : public Module if (key == "index") { - HelpopException e("m_helpop: The key 'index' is reserved for internal purposes. Please remove it."); - throw(e); + throw ModuleException("m_helpop: The key 'index' is reserved for internal purposes. Please remove it."); } helpop_map[key] = value; @@ -152,14 +139,12 @@ class ModuleHelpop : public Module if (helpop_map.find("start") == helpop_map.end()) { // error! - HelpopException e("m_helpop: Helpop file is missing important entries. Please check the example conf."); - throw(e); + throw ModuleException("m_helpop: Helpop file is missing important entries. Please check the example conf."); } else if (helpop_map.find("nohelp") == helpop_map.end()) { // error! - HelpopException e("m_helpop: Helpop file is missing important entries. Please check the example conf."); - throw(e); + throw ModuleException("m_helpop: Helpop file is missing important entries. Please check the example conf."); } } -- cgit v1.2.3