|
@@ -73,12 +73,16 @@ public class IRCReader implements Closeable {
|
73
|
73
|
int chr = 0, lastChr = 0;
|
74
|
74
|
|
75
|
75
|
while (offset < 512 && (chr = stream.read()) > -1) {
|
|
76
|
+ if (chr == '\r') {
|
|
77
|
+ continue;
|
|
78
|
+ }
|
|
79
|
+
|
76
|
80
|
line[offset++] = (byte) chr;
|
77
|
81
|
|
78
|
82
|
if (lastChr == ' ' && chr == ':' && paramOffset == -1) {
|
79
|
83
|
// We've found the last param
|
80
|
84
|
paramOffset = offset;
|
81
|
|
- } else if (lastChr == '\r' && chr == '\n') {
|
|
85
|
+ } else if (chr == '\n') {
|
82
|
86
|
// End of the line
|
83
|
87
|
break;
|
84
|
88
|
}
|