|
@@ -52,7 +52,7 @@ public class IRCParser implements Runnable {
|
52
|
52
|
}
|
53
|
53
|
|
54
|
54
|
public MyInfo me = new MyInfo(); // This is what the user wants, nickname here is *not* fact.
|
55
|
|
- public MyInfo server = new ServerInfo(); // Server Info requested by user
|
|
55
|
+ public ServerInfo server = new ServerInfo(); // Server Info requested by user
|
56
|
56
|
|
57
|
57
|
private String sThinkNickname; // This is what we want the nickname to be.
|
58
|
58
|
private String sConfirmedNickname; // This is what the nickname actually is.
|
|
@@ -144,11 +144,13 @@ public class IRCParser implements Runnable {
|
144
|
144
|
}
|
145
|
145
|
|
146
|
146
|
// Constructors
|
147
|
|
- public IRCParser (MyInfo myDetails, ServerInfo serverDetails) { this(myDetails); this(serverDetails); }
|
148
|
|
- public IRCParser (ServerInfo serverDetails) { this.server = serverDetails; }
|
149
|
|
- public IRCParser (MyInfo myDetails) { this.me = myDetails; }
|
150
|
147
|
public IRCParser () { }
|
151
|
|
-
|
|
148
|
+ public IRCParser (ServerInfo serverDetails) { this(null,serverDetails); }
|
|
149
|
+ public IRCParser (MyInfo myDetails) { this(myDetails,null); }
|
|
150
|
+ public IRCParser (MyInfo myDetails, ServerInfo serverDetails) {
|
|
151
|
+ if (myDetails != null) { this.me = myDetails; }
|
|
152
|
+ if (serverDetails != null) { this.server = serverDetails; }
|
|
153
|
+ }
|
152
|
154
|
|
153
|
155
|
private void ResetState() {
|
154
|
156
|
TriedAlt = false;
|