diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-19 14:53:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-19 14:53:06 +0000 |
commit | 6824a483e3bc4a584b998929ac066dda2ae24c8b (patch) | |
tree | 9e1837d8031169781029b65cb7e4796f15c422e6 /src/inspircd.cpp | |
parent | 99e1325d666d9617217cc44d48c1a1c381e83f21 (diff) |
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
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index de9f64781..0f4a9488e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -524,7 +524,7 @@ bool InspIRCd::LoadModule(const char* filename) return false; } } - catch (ModuleException modexcept) + catch (ModuleException& modexcept) { log(DEFAULT,"Unable to load %s: ",modfile,modexcept.GetReason()); snprintf(MODERR,MAXBUF,"Factory function threw an exception: %s",modexcept.GetReason()); @@ -754,7 +754,7 @@ int InspIRCd::Run() { Config->GetIOHook(in_port)->OnRawSocketAccept(incomingSockfd, (char*)inet_ntoa(client.sin_addr), in_port); } - catch (ModuleException modexcept) + catch (ModuleException& modexcept) { log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); \ } |