Skip to content

Commit

Permalink
Fixed proxy-standalone.
Browse files Browse the repository at this point in the history
Used elifs instead of ifs on getting parameters, meaning only one could be true.
  • Loading branch information
calmilamsy authored Aug 27, 2019
1 parent f4554d7 commit 8fc9288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proxy-standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def start():
if opt == '-h':
print(helptext)
sys.exit()
elif opt in ("-s", "--soundfix"):
if opt in ("-s", "--soundfix"):
doSoundFix = True
elif opt in ("-k", "--skinfix"):
if opt in ("-k", "--skinfix"):
doSkinFix = True
elif opt in ("-c", "--capefix"):
if opt in ("-c", "--capefix"):
doCapeFix = True
else:
if doSoundFix == False and doSkinFix == False and doCapeFix == false:
print(helptext)
sys.exit()

Expand Down

0 comments on commit 8fc9288

Please sign in to comment.