|
@@ -75,6 +75,9 @@ public class IRCReader implements Closeable {
|
75
|
75
|
while (offset < 512 && (chr = stream.read()) > -1) {
|
76
|
76
|
if (chr == '\r') {
|
77
|
77
|
continue;
|
|
78
|
+ } else if (chr == '\n') {
|
|
79
|
+ // End of the line
|
|
80
|
+ break;
|
78
|
81
|
}
|
79
|
82
|
|
80
|
83
|
line[offset++] = (byte) chr;
|
|
@@ -82,9 +85,6 @@ public class IRCReader implements Closeable {
|
82
|
85
|
if (lastChr == ' ' && chr == ':' && paramOffset == -1) {
|
83
|
86
|
// We've found the last param
|
84
|
87
|
paramOffset = offset;
|
85
|
|
- } else if (chr == '\n') {
|
86
|
|
- // End of the line
|
87
|
|
- break;
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
lastChr = chr;
|
|
@@ -95,7 +95,7 @@ public class IRCReader implements Closeable {
|
95
|
95
|
return null;
|
96
|
96
|
}
|
97
|
97
|
|
98
|
|
- return processLine(line, offset - 2, paramOffset);
|
|
98
|
+ return processLine(line, offset, paramOffset);
|
99
|
99
|
}
|
100
|
100
|
|
101
|
101
|
/**
|