Browse Source

Fixed stupid errors.


git-svn-id: http://svn.dmdirc.com/trunk@41 00569f92-eb28-0410-84fd-f71c24880f
tags/0.1
Shane Mc Cormack 17 years ago
parent
commit
6069b2a844
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      src/dmdirc/parser/IRCParser.java

+ 7
- 5
src/dmdirc/parser/IRCParser.java View File

@@ -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;

Loading…
Cancel
Save