summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 5ea8f91da..f7541f53f 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -264,7 +264,11 @@ void tidystring(char* str)
void chop(char* str)
{
-
+ if (!str)
+ {
+ log(DEBUG,"ERROR! Null string passed to chop()!");
+ return;
+ }
string temp = str;
FOREACH_MOD OnServerRaw(temp,false);
const char* str2 = temp.c_str();