devBuzzy / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Lines getting chopped off at the end #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using the autosplit feature, each part from splitting still ends up 
slightly too long, making characters at the end of the string disappear.

Original issue reported on code.google.com by RayKay...@gmail.com on 14 Aug 2012 at 11:30

GoogleCodeExporter commented 9 years ago
Sorry for the delay, have been really busy.

I'm confused as to how it fails. This is unit tested in 
http://code.google.com/p/pircbotx/source/browse/src/test/java/org/pircbotx/PircB
otXOutputTest.java#128 and I've never run into any issues myself

Can you post an example log and source code?

Original comment by Lord.Qua...@gmail.com on 6 Sep 2012 at 5:36

GoogleCodeExporter commented 9 years ago
http://pastebin.com/Q3bHz4Ha This should explain it all.

Original comment by RayKay...@gmail.com on 9 Sep 2012 at 8:09

GoogleCodeExporter commented 9 years ago
Well the default max line length is 512 in InputThread (not sure why its in 
InputThread though...). It seems that for your server its around 470. On 
freenode it seems to be 460 - target length.

About the best I could think of would be 450 chars default but make it user 
configurable. 

Original comment by Lord.Qua...@gmail.com on 10 Sep 2012 at 2:03

GoogleCodeExporter commented 9 years ago
Revision 67d1a42164c6 should fix this. Just configure it with 
setMaxLineLength(470)

Original comment by Lord.Qua...@gmail.com on 10 Sep 2012 at 2:36