|
@@ -49,7 +49,6 @@ import java.util.Arrays;
|
49
|
49
|
import java.util.Collection;
|
50
|
50
|
import java.util.Collections;
|
51
|
51
|
import java.util.HashMap;
|
52
|
|
-import java.util.Hashtable;
|
53
|
52
|
import java.util.LinkedList;
|
54
|
53
|
import java.util.List;
|
55
|
54
|
import java.util.Map;
|
|
@@ -160,16 +159,16 @@ public class IRCParser implements SecureParser, Runnable {
|
160
|
159
|
private int connectTimeout = 5000;
|
161
|
160
|
|
162
|
161
|
/** Hashtable storing known prefix modes (ohv). */
|
163
|
|
- final Map<Character, Long> prefixModes = new Hashtable<Character, Long>();
|
|
162
|
+ final Map<Character, Long> prefixModes = new HashMap<Character, Long>();
|
164
|
163
|
/**
|
165
|
164
|
* Hashtable maping known prefix modes (ohv) to prefixes (@%+) - Both ways.
|
166
|
165
|
* Prefix map contains 2 pairs for each mode. (eg @ => o and o => @)
|
167
|
166
|
*/
|
168
|
|
- final Map<Character, Character> prefixMap = new Hashtable<Character, Character>();
|
|
167
|
+ final Map<Character, Character> prefixMap = new HashMap<Character, Character>();
|
169
|
168
|
/** Integer representing the next avaliable integer value of a prefix mode. */
|
170
|
169
|
long nextKeyPrefix = 1;
|
171
|
170
|
/** Hashtable storing known user modes (owxis etc). */
|
172
|
|
- final Map<Character, Long> userModes = new Hashtable<Character, Long>();
|
|
171
|
+ final Map<Character, Long> userModes = new HashMap<Character, Long>();
|
173
|
172
|
/** Integer representing the next avaliable integer value of a User mode. */
|
174
|
173
|
long nNextKeyUser = 1;
|
175
|
174
|
/**
|
|
@@ -180,7 +179,7 @@ public class IRCParser implements SecureParser, Runnable {
|
180
|
179
|
* <br>
|
181
|
180
|
* Channel modes discovered but not listed in 005 are stored as boolean modes automatically (and a ERROR_WARNING Error is called)
|
182
|
181
|
*/
|
183
|
|
- final Map<Character, Long> chanModesBool = new Hashtable<Character, Long>();
|
|
182
|
+ final Map<Character, Long> chanModesBool = new HashMap<Character, Long>();
|
184
|
183
|
/** Integer representing the next avaliable integer value of a Boolean mode. */
|
185
|
184
|
|
186
|
185
|
long nextKeyCMBool = 1;
|
|
@@ -194,7 +193,7 @@ public class IRCParser implements SecureParser, Runnable {
|
194
|
193
|
* see MODE_SET<br>
|
195
|
194
|
* see MODE_UNSET<br>
|
196
|
195
|
*/
|
197
|
|
- final Map<Character, Byte> chanModesOther = new Hashtable<Character, Byte>();
|
|
196
|
+ final Map<Character, Byte> chanModesOther = new HashMap<Character, Byte>();
|
198
|
197
|
|
199
|
198
|
/** The last line of input recieved from the server */
|
200
|
199
|
String lastLine = "";
|
|
@@ -204,13 +203,13 @@ public class IRCParser implements SecureParser, Runnable {
|
204
|
203
|
/** Channel Prefixes (ie # + etc). */
|
205
|
204
|
private final List<Character> chanPrefix = Collections.synchronizedList(new LinkedList<Character>());
|
206
|
205
|
/** Hashtable storing all known clients based on nickname (in lowercase). */
|
207
|
|
- private final Map<String, IRCClientInfo> clientList = new Hashtable<String, IRCClientInfo>();
|
|
206
|
+ private final Map<String, IRCClientInfo> clientList = new HashMap<String, IRCClientInfo>();
|
208
|
207
|
/** Hashtable storing all known channels based on chanel name (inc prefix - in lowercase). */
|
209
|
|
- private final Map<String, IRCChannelInfo> channelList = new Hashtable<String, IRCChannelInfo>();
|
|
208
|
+ private final Map<String, IRCChannelInfo> channelList = new HashMap<String, IRCChannelInfo>();
|
210
|
209
|
/** Reference to the ClientInfo object that references ourself. */
|
211
|
210
|
private IRCClientInfo myself = new IRCClientInfo(this, "myself").setFake(true);
|
212
|
211
|
/** Hashtable storing all information gathered from 005. */
|
213
|
|
- final Map<String, String> h005Info = new Hashtable<String, String>();
|
|
212
|
+ final Map<String, String> h005Info = new HashMap<String, String>();
|
214
|
213
|
|
215
|
214
|
/** Ignore List. */
|
216
|
215
|
IgnoreList myIgnoreList = new IgnoreList();
|