You really shouldn't be using $? anymore.
Khaled already announced in mIRC 5.9 that $? is depracated and $input replaces it. In my opinoin he should have already deleted the feature, just like the old $parm and $parms

Does $input works ok for you instead $? ?
Note: $input() replaces $?. $? is still supported but no
longer documented.