summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar w00t2007-07-23 21:37:26 +0000
committerGravatar w00t2007-07-23 21:37:26 +0000
commit57e22c12ea966a16a4fe2ccd2dcdc75f697902dc (patch)
tree5d361373701f9b2e321cb2c0f6628f4a446f2e30 /src/helperfuncs.cpp
parentMerge 7519 from trunk (diff)
Merge r7522
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7523 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 3591a2d89..26f470b5f 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -30,6 +30,10 @@ static time_t LAST = 0;
*/
void InspIRCd::Log(int level, const char* text, ...)
{
+ /* sanity check, just in case */
+ if (!this->Config)
+ return;
+
/* Do this check again here so that we save pointless vsnprintf calls */
if ((level < Config->LogLevel) && !Config->forcedebug)
return;
@@ -46,6 +50,7 @@ void InspIRCd::Log(int level, const char* text, ...)
void InspIRCd::Log(int level, const std::string &text)
{
+ /* sanity check, just in case */
if (!this->Config)
return;