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/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 6883e05fd..b286ee96f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -80,9 +80,9 @@ void ListenSocket::HandleEvent(EventType et, int errornum) ServerInstance->Config->GetIOHook(in_port)->OnRawSocketAccept(incomingSockfd, insp_ntoa(client.sin_addr), in_port); #endif } - catch (ModuleException& modexcept) + catch (CoreException& modexcept) { - ServerInstance->Log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); + ServerInstance->Log(DEBUG,"%s threw an exception: %s", modexcept.GetSource(), modexcept.GetReason()); } } ServerInstance->stats->statsAccept++; -- cgit v1.2.3