Added in 3.3

$maxlenm

Return the maximum number of characters that can safely be used for medium string in a script.

The current value is 2048.

Not relevant to AdiIRC scripting, AdiIRC allows much larger numbers based on available memory and other technical limits.