Forgot to commit this?

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3247 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-02-19 15:26:07 +00:00
parent 1328556e36
commit b1fcb6a770

View File

@ -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();
}
};