summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
commit63304b3a01a237cff2943373e4467dd678eadb53 (patch)
tree92fd01606d977400383f681be343bb6bf4c31e1f /src/modules.c
parenta03ece92ed1f092995d8bb1cc2c56b188da00ec8 (diff)
Add MODULE_INIT workaround for modules, so they are loadable. Inspired by InspIRCd solution to this.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1272 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c
index 24e4d7b13..05f077331 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -624,6 +624,7 @@ int loadModule(Module * m, User * u)
ano_modclearerr();
func = (int (*)(int, char **))ano_modsym(m->handle, "AnopeInit");
if ( func == NULL && (err = ano_moderr()) != NULL) {
+ alog("No AnopeInit found, not an Anope module.");
ano_modclose(m->handle); /* If no AnopeInit - it isnt an Anope Module, close it */
return MOD_ERR_NOLOAD;
}