diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:18:40 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:18:40 +0000 |
commit | 81b7aa657110db03ceb861d8206fc6e805ede9c8 (patch) | |
tree | 8437f5ce65de3e27e5e02196711bd770aa86b7f5 /src/modulemanager.cpp | |
parent | fd45a3ad4219bffcf2f68fcc1dce3ff33b531b89 (diff) |
Massive cleanup of the CMakeLists.txt files to finalize them.
Edited configuration scripts for *nix and Windows to use CMake as well as support both in-source and out-of-source builds.
Changed directory structure for *nix to match Windows to remove some conditionals in both CMake and Anope itself.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1841 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 672af7bbc..d78052c0c 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -44,7 +44,9 @@ static int moduleCopyFile(const char *name, const char *output) char input[4096]; int len; - strncpy(input, MODULE_PATH, 4095); /* Get full path with module extension */ + strncpy(input, services_dir.c_str(), 4095); + len = strlen(input); + strncat(input, "/modules/", 4095 - len); /* Get full path with module extension */ len = strlen(input); strncat(input, name, 4095 - len); len = strlen(output); @@ -146,7 +148,7 @@ int ModuleManager::LoadModule(const std::string &modname, User * u) /* Generate the filename for the temporary copy of the module */ std::string pbuf; - pbuf = MODULE_PATH; + pbuf = services_dir + "/modules/"; #ifndef _WIN32 pbuf += "runtime/"; #else |