diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 17:56:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 17:56:43 +0000 |
commit | 04b29a4e89df5e88532dbd87e1df6691e550a2c7 (patch) | |
tree | c5492ba97efee0394b21aa7acfa1a1d6a913344d /src | |
parent | b98c8c198c5c7f17b513aaabefae3bf465437411 (diff) |
Added Server::GetModuleName(), Module* to filename
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4238 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 2c72943ec..d6119bd5b 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -292,6 +292,18 @@ Module* Server::FindFeature(const std::string &FeatureName) return iter->second; } +const char* Server::GetModuleName(Module* m) +{ + for (int i = 0; i <= MODCOUNT; i++) + { + if (modules[i] == m) + { + return module_names[i]; + } + } + return ""; +} + void Server::RehashServer() { WriteOpers("*** Rehashing config file"); |