From b5966cf99e2b1ffd578e0aa371803cb17013956f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 1 Dec 2013 21:16:50 -0500 Subject: Fix crash from loading exceptions with db_old and then unloading db_old --- modules/commands/os_session.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/commands') diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index be003900d..8e210d5da 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -42,6 +42,11 @@ class MySessionService : public SessionService public: MySessionService(Module *m) : SessionService(m), Exceptions("Exception") { } + Exception *CreateException() anope_override + { + return new Exception(); + } + void AddException(Exception *e) anope_override { this->Exceptions->push_back(e); -- cgit