This code should send long lines as multiple messages:
Code:
on *:INPUT:#:{
  if ((/* iswm $1) && (!$ctrlenter)) return
  var %mcllines = $ceil($calc($len($1-) / $maxchars))
  var %mcllen = $floor($calc(($len($1-) + $len($str($target $+ ..,%mcllines))) / %mcllines)))
  var %mclpre = $calc(%mcllen - $len($target $+ $chr(32)))
  while ($left($1,%mclpre)) {
    msg $target $v1
    tokenize 32 $right($1,$+(-,%mclpre))
  }
  halt
}


It seems that the editbox can only process 950 chars, so this code will try to split up long text into even lines when it sends them.

-genius_at_work