Final version (?)

I don't think I need to add Nina suggestion, but maybe I'm wrong. Anyway the condition is now correctly working, and I've removed the spaces to use tabs.
This commit is contained in:
tetris245 2022-05-12 21:46:08 +02:00 committed by GitHub
parent 75940c13ea
commit fd8e406da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,12 +211,12 @@ function TitleExit() {
if (Nick == null) Nick = "";
Nick = Nick.trim().substring(0, 20);
if (Regex.test(Nick)) {
if (Nick == Player.Name || ((Nick != Player.Name) && (Nick != tmpname)) ) {
if (Nick != tmpname) {
ChatRoomPublishCustomAction("NicknameChange", false, dictionary);
}
Player.Nickname = Nick;
ServerAccountUpdate.QueueData({ Nickname: Nick });
ElementRemove("InputNickname");
CommonSetScreen("Character", "InformationSheet");
}
Player.Nickname = Nick;
ServerAccountUpdate.QueueData({ Nickname: Nick });
ElementRemove("InputNickname");
CommonSetScreen("Character", "InformationSheet");
}
}