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
commita3a360394e4bc9e1c33a278e05364a0a1a610421 (patch)
tree26b479c49cc426f5546a66ee7ba33acd77967db5 /src/modules.c
parent63304b3a01a237cff2943373e4467dd678eadb53 (diff)
Add MODULE_INIT to all modules, fix a few various crashes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1273 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.c b/src/modules.c
index 05f077331..18bfacc57 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -622,9 +622,9 @@ int loadModule(Module * m, User * u)
return MOD_ERR_NOLOAD;
}
ano_modclearerr();
- func = (int (*)(int, char **))ano_modsym(m->handle, "AnopeInit");
+ func = (int (*)(int, char **))ano_modsym(m->handle, "anope_modinit");
if ( func == NULL && (err = ano_moderr()) != NULL) {
- alog("No AnopeInit found, not an Anope module.");
+ alog("No magical anope_modinit() found, not an Anope module, or a very old module(?)");
ano_modclose(m->handle); /* If no AnopeInit - it isnt an Anope Module, close it */
return MOD_ERR_NOLOAD;
}