From 8a87f6bb39ae0917c22f218cf019872691825b52 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 10 Aug 2024 00:10:54 +0300 Subject: [PATCH] Fix Black style issues --- heisenbridge/network_room.py | 6 +++--- heisenbridge/private_room.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/heisenbridge/network_room.py b/heisenbridge/network_room.py index 23e31db..45b7b2d 100644 --- a/heisenbridge/network_room.py +++ b/heisenbridge/network_room.py @@ -217,7 +217,7 @@ def init(self): epilog=( "If the network supports SASL authentication you can configure them with this command.\n" "If your password contains special characters, use shell escaping.\n" - "Example: SASL \"pass;word\"\n" + 'Example: SASL "pass;word"\n' "\n" "Note: Bridge administrators can trivially see the stored password if they want to.\n" ), @@ -259,7 +259,7 @@ def init(self): "\n" 'Example (QuakeNet): AUTOCMD "UMODE +x; MSG -s Q@CServe.quakenet.org auth foo bar"\n' "Example (OFTC): AUTOCMD NICKSERV -s identify foo bar\n" - "Example (special characters): AUTOCMD \"NICKSERV -s \\\"identify special;'chars\\\"\"\n" + 'Example (special characters): AUTOCMD "NICKSERV -s \\"identify special;\'chars\\""\n' ), ) cmd.add_argument("command", nargs="*", help="commands separated with ';'") @@ -351,7 +351,7 @@ def init(self): description="send a message to NickServ (if supported by network)", epilog=( "If your password contains special characters, use shell escaping.\n" - "Example: NICKSERV \"identify pass;word\"\n" + 'Example: NICKSERV "identify pass;word"\n' "Alias: NS" ), ) diff --git a/heisenbridge/private_room.py b/heisenbridge/private_room.py index 8b863b8..8942184 100644 --- a/heisenbridge/private_room.py +++ b/heisenbridge/private_room.py @@ -410,7 +410,9 @@ def init(self) -> None: cmd.set_defaults(enabled=None) self.commands.register(cmd, self.cmd_reacts) - cmd = CommandParser(prog="PREFIXALL", description="prefix all bridged IRC lines with the user's nick, instead of just the first") + cmd = CommandParser( + prog="PREFIXALL", description="prefix all bridged IRC lines with the user's nick, instead of just the first" + ) cmd.add_argument("--enable", dest="enabled", action="store_true", help="Prefix all lines") cmd.add_argument("--disable", dest="enabled", action="store_false", help="Only prefix first line") cmd.set_defaults(enabled=None)