From 56df1abdd89638355edcd65ff6f11f917bf63e5f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 30 Sep 2012 18:59:14 -0400 Subject: Place runtime module binaries in data/runtime instead of lib/ incase of a system wide install where lib/ is not writable --- src/modulemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 5fd2937f7..473e46a0f 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -23,7 +23,7 @@ std::vector ModuleManager::EventHandlers[I_END]; void ModuleManager::CleanupRuntimeDirectory() { - Anope::string dirbuf = modules_dir + "/modules/runtime"; + Anope::string dirbuf = db_dir + "/runtime"; Log(LOG_DEBUG) << "Cleaning out Module run time directory (" << dirbuf << ") - this may take a moment please wait"; @@ -135,7 +135,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u) Log(LOG_DEBUG) << "trying to load [" << modname << "]"; /* Generate the filename for the temporary copy of the module */ - Anope::string pbuf = modules_dir + "/modules/runtime/" + modname + ".so.XXXXXX"; + Anope::string pbuf = db_dir + "/runtime/" + modname + ".so.XXXXXX"; /* Don't skip return value checking! -GD */ ModuleReturn ret = moduleCopyFile(modname, pbuf); -- cgit