summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dynamic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index dfc02ac24..77513bbb4 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -69,6 +69,10 @@ DLLManager::DLLManager(char *fname)
// shared libraries are mmap()ed and not doing this causes
// segfaults.
FILE* x = fopen(fname,"rb");
+ if (!x)
+ {
+ err = "Module file not found or cannot access, game over man!";
+ }
char tmpfile_template[255];
char buffer[65536];
snprintf(tmpfile_template, 255, "%s/inspircd_file.so.%d.XXXXXXXXXX",Config->TempDir,getpid());