$(x,) is equivilant to $(x,0) just means evaluate x zero times
$( is the same as $eval(
In this case it just stops mirc seeing it as part of the script and sees it instead as raw text
i could use in replace of { | } $chr(123) $chr(124) $chr(125) but it makes the code harder to read.
As a side note here is an example of what the evaluating does
alias example {
var %a = hello
var %b = % $+ a
echo %a = %a
echo %b = %b
echo $(%b,) = $(%b,)
echo $(%b,0) = $(%b,0)
echo $(%b,1) = $(%b,1)
echo $(%b,2) = $(%b,2)
}
/example
%a = hello
%b = %a
$(%b,) = %b
$(%b,0) = %b
$(%b,1) = %a
$(%b,2) = hello
see $(%b,) and $(%b,0) dont evaluate %b to get its contents
$(%b,1) does, this is the same as just going %b
$(%b,2) does it twice first to get the contents of %b whcih is %a then again and gets the contenst of %a being Hello