From 13fdf558c76b71f95776fbc4460f5651ad64dafe Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 8 Nov 2019 20:56:12 -0500 Subject: Check that password is hashed --- bounce.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bounce.c') diff --git a/bounce.c b/bounce.c index c174249..bc97cf3 100644 --- a/bounce.c +++ b/bounce.c @@ -322,6 +322,9 @@ int main(int argc, char *argv[]) { if (!user) user = nick; if (!real) real = nick; if (!clientAway) clientAway = "pounced :3"; + if (clientPass && clientPass[0] != '$') { + errx(EX_CONFIG, "password must be hashed with -x"); + } ringAlloc(ringSize); if (savePath) saveLoad(savePath); -- cgit 1.4.1