Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add option to split long messages into multiple PRIVMSG calls #106

Merged
merged 1 commit into from Oct 25, 2012

Conversation

Projects
None yet
4 participants
Contributor

PherricOxide commented Sep 2, 2012

Many IRC servers only allow a PRIVMESSAGE length of some number of
characters. This lets the user specify what size they want messages
to be split into.

@PherricOxide PherricOxide Add option to split messages into multiple PRIVMSGs
Many IRC servers only allow a PRIVMESSAGE length of some number of
characters. This lets the user specify what size they want messages
to be split into.
1061adc
Contributor

damianb commented Sep 2, 2012

the IRC RFCs actually specify that messages are not to exceed 512 bytes (including pre-message metadata regarding target and such), so you could probably go with that.

Owner

martynsmith commented Oct 25, 2012

Yeah, would it be possible to change the default to 512 (as @damianb mentioned above), and the pedant in me says "fewer than messageSplit characters" (not "less than") ;-)

I'll either merge this and make those changes myself, or if you're about and have time, you could make them and I'll then merge.

@martynsmith martynsmith merged commit 1061adc into martynsmith:master Oct 25, 2012

reynir commented Jul 20, 2014

This doesn't always work as intended if you try to use unicode characters. It will cut off at messageSplit unicode characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment