Variable: erc-split-line-length

erc-split-line-length is a customizable variable defined in erc-backend.el.gz.

Value

440

Documentation

The maximum length of a single message.

ERC normally splits chat input submitted at its prompt into multiple messages when the initial size exceeds this value in bytes. Modules can tell ERC to forgo splitting entirely by setting this to zero locally or, preferably, by binding it around a remapped erc-send-current-line command.

IRC allows for lines up to 512 bytes. Two of them are CR LF. And a typical message looks like this:

  :nicky!uhuser@host212223.dialin.fnordisp.net PRIVMSG #lazybastards :Hello!

You can limit here the maximum length of the "Hello!" part. Good luck.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-backend.el.gz
(defcustom erc-split-line-length 440
  "The maximum length of a single message.
ERC normally splits chat input submitted at its prompt into
multiple messages when the initial size exceeds this value in
bytes.  Modules can tell ERC to forgo splitting entirely by
setting this to zero locally or, preferably, by binding it around
a remapped `erc-send-current-line' command.

IRC allows for lines up to 512 bytes.  Two of them are CR LF.
And a typical message looks like this:

  :nicky!uhuser@host212223.dialin.fnordisp.net PRIVMSG #lazybastards :Hello!

You can limit here the maximum length of the \"Hello!\" part.
Good luck."
  :type 'integer)