Reformat and fix circular import

This commit is contained in:
2022-07-21 13:40:03 +01:00
parent 27cafa1def
commit 4ecb37b179
11 changed files with 52 additions and 29 deletions

View File

@@ -114,7 +114,10 @@ class Relay(Protocol):
def handleHello(self, parsed):
if parsed["key"] in main.tokens.keys():
if parsed["hello"] == main.tokens[parsed["key"]]["hello"] and main.tokens[parsed["key"]]["usage"] == "relay":
if (
parsed["hello"] == main.tokens[parsed["key"]]["hello"]
and main.tokens[parsed["key"]]["usage"] == "relay"
):
self.sendMsg({"type": "hello", "hello": main.tokens[parsed["key"]]["counter"]})
self.authed = True
else: