Skip to content

Commit

Permalink
strip whitespace from Ergo hashed password output (progval#198)
Browse files Browse the repository at this point in the history
Removes the need for some special-casing in `ergo genpasswd`
  • Loading branch information
slingamn committed Apr 19, 2023
1 parent 6edf4e2 commit 3b7f81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irctest/controllers/ergo.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def hash_password(password: Union[str, bytes]) -> str:
["ergo", "genpasswd"], stdin=subprocess.PIPE, stdout=subprocess.PIPE
)
out, _ = p.communicate(input_)
return out.decode("utf-8")
return out.decode("utf-8").strip()


class ErgoController(BaseServerController, DirectoryBasedController):
Expand Down

0 comments on commit 3b7f81e

Please sign in to comment.