]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Run modulemanager upgrade to check for updates to third party (and extras) modules...
[user/henk/code/inspircd.git] / src / modules.cpp
index 66134e3bc5f3d5efbb75c1662914fc8b5a09a573..fbede2c0ac5eda719923916bfbf7d394b1080ceb 100644 (file)
@@ -379,7 +379,7 @@ bool ModuleManager::Load(const char* filename)
        if (strchr(filename,'*') || (strchr(filename,'?')))
        {
                int n_match = 0;
-               DIR* library = opendir(Instance->Config->ModPath);
+               DIR* library = opendir(Instance->Config->ModPath.c_str());
                if (library)
                {
                        /* Try and locate and load all modules matching the pattern */
@@ -402,7 +402,7 @@ bool ModuleManager::Load(const char* filename)
        }
 
        char modfile[MAXBUF];
-       snprintf(modfile,MAXBUF,"%s/%s",Instance->Config->ModPath,filename);
+       snprintf(modfile,MAXBUF,"%s/%s",Instance->Config->ModPath.c_str(),filename);
        std::string filename_str = filename;
 
        if (!ServerConfig::FileExists(modfile))