We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da8026 commit 5fd208aCopy full SHA for 5fd208a
src/ONetLoginHandler.java
@@ -54,8 +54,12 @@ public void a(String s) {
54
}
55
56
public void a(OPacket2ClientProtocol opacket2clientprotocol) {
57
+ if (this.g != null) {
58
+ this.a(this.g.equalsIgnoreCase(opacket2clientprotocol.f()) ? "Quit repeating yourself." : "You just told me something else!");
59
+ return;
60
+ }
61
this.g = opacket2clientprotocol.f();
- if (!this.g.toLowerCase().matches("[a-z0-9_]+")) {
62
+ if (!this.g.toLowerCase().matches("[a-z0-9_-]{2,16}")) {
63
this.a("Invalid username!");
64
} else {
65
PublicKey publickey = this.e.H().getPublic();
0 commit comments