summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-19 15:26:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-19 15:26:07 +0000
commitb1fcb6a770eb45174ad6daf81c325a073fccd532 (patch)
tree7d67aadead1f6ec951275e1a72029709bde2165a
parent1328556e3690aa7a6c6003373221c4cc914c1d4d (diff)
Forgot to commit this?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3247 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/modules.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 07da2989f..2e0a614c5 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -289,12 +289,15 @@ class ExtMode : public classbase
class ModuleException
{
+ private:
+ std::string err;
public:
- ModuleException() {};
+ ModuleException() : err("Module threw an exception") {}
+ ModuleException(std::string message) : err(message) {}
virtual ~ModuleException() {};
virtual char *GetReason()
{
- return "Module threw an exception";
+ return (char*)err.c_str();
}
};