From efd022efd8aca9593c4c7cd781385d233c7daced Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 6 Jan 2018 16:51:09 +1000 Subject: [PATCH] Add an error message --- magicka.strings | 1 + src/users.c | 1 + 2 files changed, 2 insertions(+) diff --git a/magicka.strings b/magicka.strings index fb33f5f..1117657 100644 --- a/magicka.strings +++ b/magicka.strings @@ -241,3 +241,4 @@ File exists!\r\n \r\nUsername may not begin or end with a space\r\n \r\nFirstname may not begin or end with a space\r\n \r\nLastname may not begin or end with a space\r\n +\r\nFirst & Last Name combination in use!\r\n diff --git a/src/users.c b/src/users.c index c8a5599..4d4b0d8 100644 --- a/src/users.c +++ b/src/users.c @@ -683,6 +683,7 @@ struct user_record *new_user() { if (!fullnameok) { free(user->firstname); free(user->lastname); + s_printf(get_string(243)); } } while (!fullnameok); s_printf(get_string(173));