diff options
author | Adam <Adam@anope.org> | 2011-07-26 23:18:54 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-07-26 23:18:54 -0400 |
commit | 088337ea076b763e82b3f46c6ec0a91b53d3f170 (patch) | |
tree | 3d8fa04fb937a2e7d3599bb05f9f5f24cbed3897 /modules/core/os_session.cpp | |
parent | e8c00b9e8b1b88a6307d8d093258e3e8d37ce1c0 (diff) |
Fixed /os ignore, /os exception del, and a crash in /cs entrymsg
Diffstat (limited to 'modules/core/os_session.cpp')
-rw-r--r-- | modules/core/os_session.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/core/os_session.cpp b/modules/core/os_session.cpp index e3575f8d1..c53168f06 100644 --- a/modules/core/os_session.cpp +++ b/modules/core/os_session.cpp @@ -143,10 +143,11 @@ class ExceptionDelCallback : public NumberList static void DoDel(CommandSource &source, unsigned index) { - FOREACH_MOD(I_OnExceptionDel, OnExceptionDel(source.u, sessionservice->GetExceptions()[index])); + Exception *e = sessionservice->GetExceptions()[index]; + FOREACH_MOD(I_OnExceptionDel, OnExceptionDel(source.u, e)); - sessionservice->DelException(sessionservice->GetExceptions()[index]); - delete sessionservice->GetExceptions()[index]; + sessionservice->DelException(e); + delete e; } }; |