diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 10:12:54 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 10:12:54 +0100 |
commit | bb49f0e021fb1fbefad44d944233fb1cf72c495c (patch) | |
tree | ebb0f2b40a3987eddf126c368237c0c60e4e6518 /source/cGroupManager.cpp | |
parent | Fixed a sigsegv on *nix (cFile double-closing files) (diff) | |
download | cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.gz cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.bz2 cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.lz cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.xz cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.zst cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.zip |
Diffstat (limited to 'source/cGroupManager.cpp')
-rw-r--r-- | source/cGroupManager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/cGroupManager.cpp b/source/cGroupManager.cpp index a67e79418..30d70171c 100644 --- a/source/cGroupManager.cpp +++ b/source/cGroupManager.cpp @@ -7,7 +7,9 @@ #include "cChatColor.h"
#include "cRoot.h"
-extern std::vector< std::string > StringSplit( std::string str, std::string delim);
+
+
+
typedef std::map< std::string, cGroup* > GroupMap;
struct cGroupManager::sGroupManagerState
@@ -57,7 +59,7 @@ cGroupManager::cGroupManager() std::string Commands = IniFile.GetValue( KeyName, "Commands", "" );
if( Commands.size() > 0 )
{
- std::vector< std::string > Split = StringSplit( Commands, "," );
+ AStringVector Split = StringSplit( Commands, "," );
for( unsigned int i = 0; i < Split.size(); i++)
{
Group->AddCommand( Split[i] );
@@ -68,7 +70,7 @@ cGroupManager::cGroupManager() std::string Permissions = IniFile.GetValue( KeyName, "Permissions", "" );
if( Permissions.size() > 0 )
{
- std::vector< std::string > Split = StringSplit( Permissions, "," );
+ AStringVector Split = StringSplit( Permissions, "," );
for( unsigned int i = 0; i < Split.size(); i++)
{
Group->AddPermission( Split[i] );
@@ -79,7 +81,7 @@ cGroupManager::cGroupManager() std::string Groups = IniFile.GetValue( KeyName, "Inherits", "" );
if( Groups.size() > 0 )
{
- std::vector< std::string > Split = StringSplit( Groups, "," );
+ AStringVector Split = StringSplit( Groups, "," );
for( unsigned int i = 0; i < Split.size(); i++)
{
Group->InheritFrom( GetGroup( Split[i].c_str() ) );
|