Spaces are preserved, to some extent.
var %x = $len($str($chr(32),128))
echo -a length of % $+ x: $len(%x)
They're just not preserved when parsing arguments, for obvious reasons... if they were preserved, then $n (where n is some positive number) could very well be $null before the end of the list:
alias one {
var %x = $len($str($chr(32),128))
echo -a length of % $+ x within one: $len(%x)
two %x
}
alias two {
echo -a length of % $+ x within two: $len($1-)
}
Preserving spaces in a aesthetically pleasing manner, for mIRC isn't difficult.
; input: x (number of spaces, integer form)
; output: expected output of $str($chr(32),x)
alias spaces {
return $replace($str($chr(32),$1),$chr(32),$+($chr(32),$chr(2),$chr(2)))
}