diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-21 21:43:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-21 21:43:47 +0000 |
commit | a7f994a7ba6417041a5f865ae8ba1e22ebada66b (patch) | |
tree | acbaaad2646751041ba1e498fe0aa0765d2cad41 | |
parent | ef3ef4727dbce41760f02092d6abec4241d85903 (diff) |
More error descriptives
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3281 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dynamic.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 77513bbb4..8e63b7d03 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -37,6 +37,11 @@ extern ServerConfig* Config; DLLManager::DLLManager(char *fname) { + if (!strstr(fname,".so")) + { + err = "This doesn't look like a module file to me..."; + return; + } #ifdef STATIC_LINK this->staticname[0] = '\0'; log(DEBUG,"Loading core-compiled module '%s'",fname); @@ -72,6 +77,7 @@ DLLManager::DLLManager(char *fname) if (!x) { err = "Module file not found or cannot access, game over man!"; + return; } char tmpfile_template[255]; char buffer[65536]; |