Skip to content

Commit 4577d41

Browse files
committed
Normalize case for login and password prompts in BandMapWindow
1 parent 7883713 commit 4577d41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

not1mm/bandmap.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,15 @@ def receive(self) -> None:
855855
if os.environ.get("SEND_CLUSTER", False) is not False:
856856
print(f"{data}")
857857

858-
if "login:" in data or "call:" in data or "callsign:" in data:
858+
if (
859+
"login:" in data.lower()
860+
or "call:" in data.lower()
861+
or "callsign:" in data.lower()
862+
):
859863
self.send_command(self.callsignField.text())
860864
return
861865

862-
if "password:" in data:
866+
if "password:" in data.lower():
863867
self.send_command(self.settings.get("cluster_password", ""))
864868
return
865869

0 commit comments

Comments
 (0)