|
@@ -1520,11 +1520,15 @@ public class IRCParser implements SecureParser, Runnable {
|
1520
|
1520
|
}
|
1521
|
1521
|
}
|
1522
|
1522
|
|
1523
|
|
- for (String thisKey : joinMap.keySet()) {
|
1524
|
|
- if (thisKey.isEmpty()) {
|
1525
|
|
- sendString("JOIN " + joinMap.get(thisKey).toString());
|
1526
|
|
- } else {
|
1527
|
|
- sendString("JOIN " + joinMap.get(thisKey).toString() + " " + thisKey);
|
|
1523
|
+ for (Map.Entry<String, StringBuffer> entrySet : joinMap.entrySet()) {
|
|
1524
|
+ final String thisKey = entrySet.getKey();
|
|
1525
|
+ final String channelString = entrySet.getValue().toString();
|
|
1526
|
+ if (!channelString.isEmpty()) {
|
|
1527
|
+ if (thisKey.isEmpty()) {
|
|
1528
|
+ sendString("JOIN " + channelString);
|
|
1529
|
+ } else {
|
|
1530
|
+ sendString("JOIN " + channelString + " " + thisKey);
|
|
1531
|
+ }
|
1528
|
1532
|
}
|
1529
|
1533
|
}
|
1530
|
1534
|
}
|