diff options
author | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
commit | f858164deed48f2dcacd5ffc06a55398a54da7e8 (patch) | |
tree | 89c3cf36bd8e94942370135218d67d6d17ee222e /src/modulemanager.cpp | |
parent | 924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (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.cpp | 11 |
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; +} + |