From 72b44be41c5b35205fcb2d0c40085a9a91c7463f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 10 Sep 2023 07:19:40 +0200 Subject: [PATCH] SNIClient: fix /snes command if tree (#791) --- SNIClient.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SNIClient.py b/SNIClient.py index 66d0b2ca..0909c613 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -68,12 +68,11 @@ class SNIClientCommandProcessor(ClientCommandProcessor): options = snes_options.split() num_options = len(options) - if num_options > 0: - snes_device_number = int(options[0]) - if num_options > 1: snes_address = options[0] snes_device_number = int(options[1]) + elif num_options > 0: + snes_device_number = int(options[0]) self.ctx.snes_reconnect_address = None if self.ctx.snes_connect_task: