summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-11 06:57:52 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-11 06:57:52 +0000
commit25e81f6ea9d8a051dd5d3aa8a93a57fe088879c7 (patch)
tree4d094b7a452d3b9d0724ded7bc91694c4b27efe1
parentea090fae8d9095fbc94219585de56f821848fc96 (diff)
Backport of r2271, remove files from the modules runtime directory on startup, just in case files were left behind during a previous run.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2272 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fbebc043e..3b11cce6b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -560,6 +560,9 @@ int main(int ac, char **av, char **envp)
}
#endif
+ /* Clean out the module runtime directory prior to running, just in case files were left behind on a previous run */
+ ModuleRunTimeDirCleanUp();
+
/* General initialization first */
if ((i = init_primary(ac, av)) != 0)
return i;