]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Added cmode_s, skeleton mode handler for channel mode +s.
[user/henk/code/inspircd.git] / src / modules.cpp
index 4e98696bd3b854ebb8eb296e413a0b7fbb8e15d9..ddfbb173b9766cc34a6d184d31ddaa15058a222b 100644 (file)
@@ -351,7 +351,7 @@ long Server::PriorityBefore(const std::string &modulename)
        return PRIORITY_DONTCARE;
 }
 
-bool Server::PublishFeature(std::string FeatureName, Module* Mod)
+bool Server::PublishFeature(const std::string &FeatureName, Module* Mod)
 {
        if (Features.find(FeatureName) == Features.end())
        {
@@ -361,7 +361,7 @@ bool Server::PublishFeature(std::string FeatureName, Module* Mod)
        return false;
 }
 
-bool Server::UnpublishFeature(std::string FeatureName)
+bool Server::UnpublishFeature(const std::string &FeatureName)
 {
        featurelist::iterator iter = Features.find(FeatureName);
        
@@ -372,7 +372,7 @@ bool Server::UnpublishFeature(std::string FeatureName)
        return true;
 }
 
-Module* Server::FindFeature(std::string FeatureName)
+Module* Server::FindFeature(const std::string &FeatureName)
 {
        featurelist::iterator iter = Features.find(FeatureName);