From dbe93e44775c4a274d329e152babd8330dadcbf8 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 16 Dec 2006 21:40:06 +0000 Subject: Add stuff so that the core catches CoreException properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 1e21c065d..a740d0d7c 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -37,9 +37,9 @@ void InspIRCd::ProcessUser(userrec* cu) { MOD_RESULT = this->Config->GetIOHook(cu->GetPort())->OnRawSocketRead(cu->GetFd(),ReadBuffer,sizeof(ReadBuffer),result2); } - catch (ModuleException& modexcept) + catch (CoreException& modexcept) { - this->Log(DEBUG,"Module exception caught: %s",modexcept.GetReason()); + this->Log(DEBUG, "%s threw an exception: %s", modexcept.GetSource(), modexcept.GetReason()); } if (MOD_RESULT < 0) -- cgit v1.3.1-10-gc9f91