jaraco / irc

Full-featured Python IRC library for Python.
MIT License
392 stars 87 forks source link

privmsg with embedded carriage returns #4

Closed jaraco closed 8 years ago

jaraco commented 8 years ago

It was reported to me via e-mail that when calling privmsg with a string containing carriage returns, only the text preceding the first carriage return is transmitted, which is unexpected. If embedded carriage returns aren't allowed, the client should raise an error. If they are allowed, the client should transmit them.


jaraco commented 8 years ago

Added error checking when sending a message - for both message length and embedded carriage returns. Fixes failing test and fixes #4.

→ <>


Original comment by: Jason R. Coombs