Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Merged

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

merged 1 commit into from
Oct 25, 2012

Conversation

PherricOxide
Copy link
Contributor

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.

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.
@katanacrimson
Copy link
Contributor

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.

@martynsmith
Copy link
Owner

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
Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants