From 6824a483e3bc4a584b998929ac066dda2ae24c8b Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Feb 2006 14:53:06 +0000 Subject: Apparently to catch descendent classes we need to catch a reference to the parent, not the parent itself git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3242 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 888d0572f..fae96721d 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -88,12 +88,13 @@ void ProcessUser(userrec* cu) if (Config->GetIOHook(cu->port)) { int result2 = 0; + int MOD_RESULT = 0; try { - int MOD_RESULT = Config->GetIOHook(cu->port)->OnRawSocketRead(cu->fd,data,65535,result2); + MOD_RESULT = Config->GetIOHook(cu->port)->OnRawSocketRead(cu->fd,data,65535,result2); log(DEBUG,"Data result returned by module: %d",MOD_RESULT); } - catch (ModuleException modexcept) + catch (ModuleException& modexcept) { log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); \ } -- cgit v1.2.3