diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-16 09:58:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-16 09:58:45 +0000 |
commit | 205108cd4ecedc623b89bc37d2429f15eb4c0a73 (patch) | |
tree | de5d93de9c84efc941b1aed22ea3966ccebea4ba /src | |
parent | b8fc8b8ea60300424e964f093122c46ac7905f7e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_helpop.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
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."); } } |