summaryrefslogtreecommitdiff
path: root/src/modulemanager.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
committerAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
commitf858164deed48f2dcacd5ffc06a55398a54da7e8 (patch)
tree89c3cf36bd8e94942370135218d67d6d17ee222e /src/modulemanager.cpp
parent924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (diff)
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r--src/modulemanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index 1c4e07eef..8f5e15146 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -523,3 +523,14 @@ Service *ModuleManager::GetService(const Anope::string &name)
return NULL;
}
+/** Get the existing service key names
+ * @return The keys
+ */
+std::vector<Anope::string> ModuleManager::GetServiceKeys()
+{
+ std::vector<Anope::string> keys;
+ for (std::map<Anope::string, Service *>::const_iterator it = ModuleManager::ServiceProviders.begin(), it_end = ModuleManager::ServiceProviders.end(); it != it_end; ++it)
+ keys.push_back(it->first);
+ return keys;
+}
+