From 78d6d9352f66f41963207b04a999d94c17d67cf2 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 11 Feb 2024 21:39:51 +0100 Subject: Added support for -y / --server-type parameter Usually this would be guessed correctly by the port, but now it is also possible to just specify the server type and the port will be derived from there, unless a default port is given in the branding file. Closes #56 --- src/gui/register.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/register.cpp') diff --git a/src/gui/register.cpp b/src/gui/register.cpp index b57ee975..0e23777c 100644 --- a/src/gui/register.cpp +++ b/src/gui/register.cpp @@ -167,7 +167,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event) minUser); error = 1; } - else if (user.length() > maxUser - 1 ) + else if (user.length() > maxUser - 1) { // Name too long errorMessage = strprintf @@ -183,7 +183,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event) minPass); error = 2; } - else if (mPasswordField->getText().length() > maxPass - 1 ) + else if (mPasswordField->getText().length() > maxPass - 1) { // Pass too long errorMessage = strprintf -- cgit v1.2.3-70-g09d2