summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-12-24 11:29:18 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-12-24 11:29:18 +0100
commit8674c6800fc904606c6f53408aaae95474b0d7b0 (patch)
treebf8d092272674d74053df3c2a5453d985a6cfd96 /src
parentUpdated MakeColour's defenition in the header. (diff)
downloadcuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar.gz
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar.bz2
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar.lz
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar.xz
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.tar.zst
cuberite-8674c6800fc904606c6f53408aaae95474b0d7b0.zip
Diffstat (limited to '')
-rw-r--r--src/GroupManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GroupManager.cpp b/src/GroupManager.cpp
index 1ffe3812f..3d454603b 100644
--- a/src/GroupManager.cpp
+++ b/src/GroupManager.cpp
@@ -77,13 +77,13 @@ cGroupManager::cGroupManager()
LOGD("Loading group: %s", KeyName.c_str() );
Group->SetName( KeyName );
- char Color = IniFile.GetValue( KeyName, "Color", "-" )[0];
+ AString Color = IniFile.GetValue( KeyName, "Color", "-" )[0];
if( Color != '-' )
- Group->SetColor( cChatColor::MakeColor(Color) );
+ Group->SetColor( cChatColor::Color + Color );
else
Group->SetColor( cChatColor::White );
- std::string Commands = IniFile.GetValue( KeyName, "Commands", "" );
+ AString Commands = IniFile.GetValue( KeyName, "Commands", "" );
if( Commands.size() > 0 )
{
AStringVector Split = StringSplit( Commands, "," );
@@ -93,7 +93,7 @@ cGroupManager::cGroupManager()
}
}
- std::string Permissions = IniFile.GetValue( KeyName, "Permissions", "" );
+ AString Permissions = IniFile.GetValue( KeyName, "Permissions", "" );
if( Permissions.size() > 0 )
{
AStringVector Split = StringSplit( Permissions, "," );