From 1158e57f400de8f0e9ec0b8b21bfcf0d5dfc830f Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 13 Oct 2015 23:33:26 +0200 Subject: Correctly read octal escapes from Clonk-config --- src/crsm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crsm.cpp') diff --git a/src/crsm.cpp b/src/crsm.cpp index fbdeea1..3fe1000 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -1642,12 +1642,12 @@ void CRSM::applyConfig() if(!Config.Auto.Volatile.Clonk.ServerNick.isEmpty() && !Config.Auto.Volatile.Clonk.ServerPCName.isEmpty()) break; if(nickExp.exactMatch(line.trimmed())) { - Config.Auto.Volatile.Clonk.ServerNick = nickExp.cap(1); + Config.Auto.Volatile.Clonk.ServerNick = Util::unescapeClonkString(nickExp.cap(1)); continue; } else if(pcNameExp.exactMatch(line.trimmed())) { - Config.Auto.Volatile.Clonk.ServerPCName = pcNameExp.cap(1); + Config.Auto.Volatile.Clonk.ServerPCName = Util::unescapeClonkString(pcNameExp.cap(1)); continue; } } -- cgit v1.2.3-54-g00ecf