Skip to content

Commit

Permalink
Fix Black style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 9, 2024
1 parent 60de961 commit 8a87f6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions heisenbridge/network_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
Expand Down Expand Up @@ -259,7 +259,7 @@ def init(self):
"\n"
'Example (QuakeNet): AUTOCMD "UMODE +x; MSG -s [email protected] 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 ';'")
Expand Down Expand Up @@ -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"
),
)
Expand Down
4 changes: 3 additions & 1 deletion heisenbridge/private_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a87f6b

Please sign in to comment.