diff --git a/src/main/java/net/pixtaded/crab/client/CrabClient.java b/src/main/java/net/pixtaded/crab/client/CrabClient.java index 52ed5db..c435438 100644 --- a/src/main/java/net/pixtaded/crab/client/CrabClient.java +++ b/src/main/java/net/pixtaded/crab/client/CrabClient.java @@ -68,7 +68,7 @@ public class CrabClient implements Crab { System.out.print("Enter your nickname (leave empty for no nickname): "); nickname = scanner.nextLine(); - if (nickname != "") + if (!nickname.isEmpty()) nickname = "<" + nickname + "> "; }