mirror of
https://github.com/anope/anope.git
synced 2026-07-03 10:13:12 +02:00
Change OperType's name to be ci::string instead of std::string, should hopefully make it so it doesn't matter what case is used in the oper blocks compared to the opertype blocks.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2713 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+5
-3
@@ -9,12 +9,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "hashcomp.h"
|
||||
|
||||
class CoreExport OperType
|
||||
{
|
||||
private:
|
||||
/** The name of this opertype, e.g. "sra".
|
||||
*/
|
||||
std::string name;
|
||||
ci::string name;
|
||||
|
||||
/** Privs that this opertype may use, e.g. 'users/auspex'.
|
||||
* This *must* be std::list, see commands comment for details.
|
||||
@@ -34,7 +36,7 @@ class CoreExport OperType
|
||||
/** Create a new opertype of the given name.
|
||||
* @param nname The opertype name, e.g. "sra".
|
||||
*/
|
||||
OperType(const std::string &nname);
|
||||
OperType(const ci::string &nname);
|
||||
|
||||
/** Check whether this opertype has access to run the given command string.
|
||||
* @param cmdstr The string to check, e.g. botserv/set/private.
|
||||
@@ -60,5 +62,5 @@ class CoreExport OperType
|
||||
|
||||
/** Returns the name of this opertype.
|
||||
*/
|
||||
const std::string &GetName() const;
|
||||
const ci::string &GetName() const;
|
||||
};
|
||||
|
||||
+4
-4
@@ -8,10 +8,10 @@
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
#include "services.h"
|
||||
|
||||
OperType::OperType(const std::string &nname) : name(nname)
|
||||
#include "services.h"
|
||||
|
||||
OperType::OperType(const ci::string &nname) : name(nname)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ void OperType::AddPriv(const std::string &privstr)
|
||||
this->privs.push_back(privstr);
|
||||
}
|
||||
|
||||
const std::string &OperType::GetName() const
|
||||
const ci::string &OperType::GetName() const
|
||||
{
|
||||
return this->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user