1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 03:56:37 +02:00

Trying to make things a little more const-safe, a work in progress but this is a bit better.

This commit is contained in:
Naram Qashat
2010-07-26 23:32:03 -04:00
parent 6e6b6b46aa
commit 57bb759305
34 changed files with 143 additions and 141 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ static int moduleCopyFile(const Anope::string &name, Anope::string &output)
#ifndef _WIN32
int srcfp;
#endif
Anope::string input = services_dir + "/modules/" + name + MODULE_EXT;
Anope::string input = services_dir + "/modules/" + name + ".so";
if (!(source = fopen(input.c_str(), "rb")))
return MOD_ERR_NOEXIST;
@@ -123,7 +123,7 @@ int ModuleManager::LoadModule(const Anope::string &modname, User *u)
Alog(LOG_DEBUG) << "trying to load [" << modname << "]";
/* Generate the filename for the temporary copy of the module */
Anope::string pbuf = services_dir + "/modules/runtime/" + modname + MODULE_EXT + ".XXXXXX";
Anope::string pbuf = services_dir + "/modules/runtime/" + modname + ".so.XXXXXX";
/* Don't skip return value checking! -GD */
if ((ret = moduleCopyFile(modname, pbuf)) != MOD_ERR_OK)