summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
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()); \
}