diff options
| author | 2022-03-27 15:30:41 +0100 | |
|---|---|---|
| committer | 2022-03-27 15:30:41 +0100 | |
| commit | f06ea52d0ab08db213b2c2fd81a4dee95910af16 (patch) | |
| tree | 1d91cc063670e5458ac4124ce1705db74734102b /src/modulemanager.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| parent | Add support for matching against geolocation data with WHO. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modulemanager.cpp')
| -rw-r--r-- | src/modulemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 50fcd912c..2c140c098 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -35,7 +35,7 @@ bool ModuleManager::Load(const std::string& modname, bool defer) { /* Don't allow people to specify paths for modules, it doesn't work as expected */ - if (modname.find('/') != std::string::npos) + if (modname.find_first_of("\\/") != std::string::npos) { LastModuleError = "You can't load modules with a path: " + modname; return false; |
