Skip to content

Commit

Permalink
fix registrarion failed if only nickname given
Browse files Browse the repository at this point in the history
  • Loading branch information
siliotar committed Oct 10, 2021
1 parent a770997 commit 0836b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcs/commands/registrationCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0836b57

Please sign in to comment.