diff options
-rw-r--r-- | src/inspircd.cpp | 6 |
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(); |