diff --git a/Mage.Common/src/mage/remote/SessionImpl.java b/Mage.Common/src/mage/remote/SessionImpl.java index 8b4b6c487a..23f5f1b858 100644 --- a/Mage.Common/src/mage/remote/SessionImpl.java +++ b/Mage.Common/src/mage/remote/SessionImpl.java @@ -205,8 +205,8 @@ public class SessionImpl implements Session { sessionState = SessionState.CONNECTED; serverState = server.getServerState(); updateDatabase(); - logger.info(new StringBuilder("Connected as ").append(this.getUserName()).append(" to MAGE server at ").append(connection.getHost()).append(":").append(connection.getPort()).toString()); - client.connected(new StringBuilder(this.getUserName()).append("@").append(connection.getHost()).append(":").append(connection.getPort()).append(" ").toString()); + logger.info("Connected as " + this.getUserName() == null ? "":this.getUserName() + " to MAGE server at " + connection.getHost() + ":" + connection.getPort()); + client.connected(this.getUserName() == null ? "":this.getUserName() +"@" + connection.getHost() + ":" + connection.getPort() +" "); return true; } disconnect(false); diff --git a/Mage.Server.Console/src/main/java/mage/server/console/ConnectDialog.form b/Mage.Server.Console/src/main/java/mage/server/console/ConnectDialog.form index a711e7a143..eb9b8bb12c 100644 --- a/Mage.Server.Console/src/main/java/mage/server/console/ConnectDialog.form +++ b/Mage.Server.Console/src/main/java/mage/server/console/ConnectDialog.form @@ -1,4 +1,4 @@ - +