From 229d25be84c71e15085c4251e2e805f68b53336f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Apr 2004 00:48:32 +0000 Subject: Fixed module loading and chop() bugs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@439 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3