sstephenson / hector

A private group chat server for people you trust
MIT License
131 stars 15 forks source link

Split up 353 responses for NAMES #3

Closed sstephenson closed 14 years ago

sstephenson commented 14 years ago

Split up 353 responses so that each response fits into a 512-char line.

raws commented 14 years ago

512 characters is actually 512 bytes according to RFC 1459. Is Hector taking a different approach?

Also, is there a need for a global mechanism to split responses into appropriately-sized chunks?

ryanfb commented 14 years ago

In 1.8 Strings are just byte sequences and I believe 1.8 String#split/length will do exactly what is expected (in the sense of bytes v. characters) as far as the RFC goes.

raws commented 14 years ago

Correct. 1.8's String behavior has worked without a hitch in other IRC projects. I was clarifying what the RFC requires, just in case.