From f0951860e0e993e820b73e28cf2335a886817eb4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 1 Sep 2013 14:42:05 +0100 Subject: [PATCH] utserver: Fixed admin username not showing in details --- UnrealTournament99/ut99server | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 69b8ab5ec..bcccb79c0 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -320,7 +320,11 @@ if [ "${engine}" == "unreal2" ]||[ "${engine}" == "unreal" ];then gsqueryport=$(grep OldQueryPortNumber= ${systemdir}/${ini}|sed 's/\OldQueryPortNumber=//g') udplinkport=$((${gameport} + 2)) webadminport=$(grep ListenPort= ${systemdir}/${ini}|sed 's/\ListenPort=//g') - webadminuser=$(grep AdminName= ${systemdir}/${ini}|sed 's/\AdminName=//g') + if [ "${engine}" == "unreal" ];then + webadminuser=$(grep AdminUsername= ${systemdir}/${ini}|sed 's/\AdminUsername=//g') + else + webadminuser=$(grep AdminName= ${systemdir}/${ini}|sed 's/\AdminName=//g') + fi webadminpass=$(grep AdminPassword= ${systemdir}/${ini}|sed 's/\AdminPassword=//g') echo "Ports the server is currently using" echo ""