diff options
-rw-r--r-- | src/modules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index f2c6cde24..bad788fe9 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -599,9 +599,10 @@ void ModuleManager::AddService(ServiceProvider& item) std::string::size_type slash = item.name.find('/'); if (slash != std::string::npos) { + // Also register foo/bar as foo. DataProviders.insert(std::make_pair(item.name.substr(0, slash), &item)); - DataProviders.insert(std::make_pair(item.name.substr(slash + 1), &item)); } + dynamic_reference_base::reset_all(); break; } |