diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-11 06:55:40 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-11 06:55:40 +0000 |
commit | 1787a8ac27da1d7f4e009c38af3a7b99a1bd57eb (patch) | |
tree | afb705459ccae7ddca2822fdb21508ca3aeda69c /src | |
parent | a2b1284aaca7c6034bcd105123849dfd0410f0b4 (diff) |
Remove files from the modules runtime directory on startup, just in case files were left behind during a previous run. Suggested by DukePyrolator and Namegduf.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2271 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index cd3c9e117..35b1361bc 100644 --- a/src/main.c +++ b/src/main.c @@ -387,6 +387,9 @@ int main(int ac, char **av, char **envp) binary_dir = GetFullProgDir(av[0]); services_dir = binary_dir + "/../data"; + /* Clean out the module runtime directory prior to running, just in case files were left behind during a previous run */ + ModuleRunTimeDirCleanUp(); + /* General initialization first */ if ((i = init_primary(ac, av)) != 0) return i; |