don't unset clientname if it exists, same for exename

This commit is contained in:
eyedeekay
2024-09-20 20:43:45 -04:00
parent 21a75d59a0
commit ac322b6eba

View File

@ -92,13 +92,13 @@ func main() {
log.Fatal(err)
}
if *cc.Executable != "" {
if *cc.Executable != "" && *cc.ClientName == "" {
*cc.ClientName = *cc.Executable
}
cc.CheckClientName(*pc.PluginName)
if *cc.Executable == "" {
if *cc.Executable == "" && *cc.ClientName != "" {
*cc.Executable = *cc.ClientName
}