jcs
/subtext
/amendments
/192
signup: user_valid_username returns bool
jcs made amendment 192 over 2 years ago
--- signup.c Tue Jun 7 22:08:29 2022
+++ signup.c Mon Jul 11 15:26:49 2022
@@ -53,7 +53,7 @@ signup(struct session *s)
if (username == NULL || username[0] == '\0' || s->ending)
goto signup_done;
- if (user_valid_username(NULL, username, &error) != 1) {
+ if (!user_valid_username(NULL, username, &error)) {
session_printf(s, "{{B}}Error:{{/B}} %s\r\n", error);
free(error);
continue;