aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-06-01 01:46:53 +0100
committerGravatar Sadie Powell2021-06-01 01:46:53 +0100
commit7f88bd76c932e3ba5b1c1b082092c9dcbfaf27ec (patch)
tree9b35978ee2437f9b3f1529e3c80605f2e212bc40 /src/modules.cpp
parentAdded -Wshorten-64-to-32 and fixed all warnings. (diff)
parentRefactor the sslqueries mode handler. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 04a88b4d7..848f30d57 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -588,9 +588,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.emplace(item.name.substr(0, slash), &item);
- DataProviders.emplace(item.name.substr(slash + 1), &item);
}
+
dynamic_reference_base::reset_all();
break;
}