1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 05:26:37 +02:00

Rewrote how commands are handled within Anope.

This allows naming commands and having spaces within command names.
This commit is contained in:
Adam
2011-07-14 02:31:12 -04:00
parent 924f6849fe
commit f858164dee
227 changed files with 8808 additions and 12352 deletions
+11
View File
@@ -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;
}