This commit is contained in:
Yohann D'ANELLO 2021-01-06 15:50:29 +01:00
parent 40a22b20c8
commit be6abe2557
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 4 additions and 4 deletions

View File

@ -391,7 +391,7 @@ class Squirrel(Hazelnut):
for c in reversed(demojized):
curses.ungetch(c)
def handle_command(self, command: str) -> None:
def handle_command(self, command: str) -> None: # noqa: C901
"""
The user sent a command. We analyse it and process what is needed.
"""
@ -526,7 +526,7 @@ class Squirrel(Hazelnut):
italic=False, ignore_debug=True)
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
italic=False, ignore_debug=True)
self.add_system_message(f"**Addresses:** "
self.add_system_message("**Addresses:** "
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
italic=False, ignore_debug=True)
elif command == "active":
@ -539,7 +539,7 @@ class Squirrel(Hazelnut):
italic=False, ignore_debug=True)
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
italic=False, ignore_debug=True)
self.add_system_message(f"**Addresses:** "
self.add_system_message("**Addresses:** "
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
italic=False, ignore_debug=True)
elif command == "potential":
@ -552,7 +552,7 @@ class Squirrel(Hazelnut):
italic=False, ignore_debug=True)
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
italic=False, ignore_debug=True)
self.add_system_message(f"**Addresses:** "
self.add_system_message("**Addresses:** "
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
italic=False, ignore_debug=True)
elif command == "debug":