mIRC Homepage
Posted By: DooMaster $input() doesn't ignore 'o' flag - 28/11/21 07:16 PM
It seems when using the following $input() combo it returns $yes as it should return $ok

Example:
Code
//echo -a is: $input(title,fvon,titlebar)

Posted By: Khaled Re: $input() doesn't ignore 'o' flag - 13/12/21 09:17 AM
Thanks for your bug report. The reason for this is that you have specified both 'o' for an ok button and 'n' for a yes/no/cancel button. You need to choose one or the other. While it would be possible to change this identifier to reject incompatible combinations of switches, it has behaved in this way ever since they were added, and changing it would likely break existing scripts where this is working. There are a large number of commands/identifiers that where created long ago where this is the case. In the end, it is up to the scripter to use the switches that they need and that work for them in the script that they are writing.
© mIRC Discussion Forums