summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 00:48:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 00:48:32 +0000
commit229d25be84c71e15085c4251e2e805f68b53336f (patch)
tree95d36b82965e4f23edd56938c302eb3d7f2f3886 /src
parent1ab828eb9c95f98b3a61ca468a310621e6a5b1b1 (diff)
Fixed module loading and chop() bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@439 e03df62e-2008-0410-955e-edbf42e46eb7
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();