Skip to content

Commit

Permalink
Fix Variable Not Declared When rcon disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Dateranoth committed May 17, 2018
1 parent 4b99b6b commit 06d4065
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ConanServerUtility/ConanServerUtility.au3
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\resources\favicon.ico
#AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.1.0.exe
#AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.1.0.exe
#AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.1.1.exe
#AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.1.1.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Comment=By Dateranoth - April 24, 2018
#AutoIt3Wrapper_Res_Description=Utility for Running Conan Server
#AutoIt3Wrapper_Res_Fileversion=3.1.0
#AutoIt3Wrapper_Res_Fileversion=3.1.1
#AutoIt3Wrapper_Res_LegalCopyright=Dateranoth @ https://gamercide.com
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Expand Down Expand Up @@ -670,7 +670,7 @@ EndFunc ;==>UpdateMod

#Region ;**** Startup Checks. Initial Log, Read INI, Check for Correct Paths, Check Remote Restart is bound to port. ****
OnAutoItExitRegister("Gamercide")
FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Script V3.1.0 Started")
FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Script V3.1.1 Started")
ReadUini($g_c_sIniFile, $g_c_sLogFile)

If $UseSteamCMD = "yes" Then
Expand Down
4 changes: 3 additions & 1 deletion src/ConanServerUtility/required/UserSettingsIni.au3
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Func ReadUini($sIniFile, $sLogFile)
$iIniFail += 1
EndIf
If $iniCheck = $RestartCode Then
$RestartCode = "Admin1_Pass:" & $RestartCode & "-AllowedCharacters=1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@$%^&*()+=-{}[]\|:;./?"
$RestartCode = "Admin1_Pass" & $RestartCode & "-AllowedCharacters=1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@$%^&*()+=-{}[]\|:;./?"
$iIniFail += 1
EndIf
If $iniCheck = $sObfuscatePass Then
Expand Down Expand Up @@ -349,6 +349,8 @@ Func ReadUini($sIniFile, $sLogFile)

If $g_sRconEnabled = "yes" Then
Global $g_iRconEnabled = 1
Else
Global $g_iRconEnabled = 0
EndIf

If $bDiscordBotUseTTS = "yes" Then
Expand Down

0 comments on commit 06d4065

Please sign in to comment.