From 0836b5776b5d750ec800c8633e8fbdb566da2a65 Mon Sep 17 00:00:00 2001 From: nikita0707 Date: Sun, 10 Oct 2021 15:32:46 +0300 Subject: [PATCH] fix registrarion failed if only nickname given --- srcs/commands/registrationCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/commands/registrationCommands.cpp b/srcs/commands/registrationCommands.cpp index b538c25..7e6c9c6 100644 --- a/srcs/commands/registrationCommands.cpp +++ b/srcs/commands/registrationCommands.cpp @@ -2,7 +2,7 @@ int Server::checkConnection(User &user) { - if (user.getNickname().size() > 0 && user.getNickname().size() > 0) + if (user.getNickname().size() > 0 && user.getUsername().size() > 0) { if (password.size() == 0 || user.getPassword() == password) {