From 3b7f81e22c317eae885f5a942767ba4f6a30414e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 18 Apr 2023 23:52:21 -0700 Subject: [PATCH] strip whitespace from Ergo hashed password output (#198) Removes the need for some special-casing in `ergo genpasswd` --- irctest/controllers/ergo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irctest/controllers/ergo.py b/irctest/controllers/ergo.py index 15d2ff0..5655e82 100644 --- a/irctest/controllers/ergo.py +++ b/irctest/controllers/ergo.py @@ -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):