mIRC Home    About    Download    Register    News    Help

Print Thread
$input() doesn't ignore 'o' flag #269660 28/11/21 07:16 PM
Joined: Oct 2017
Posts: 42
D
DooMaster Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2017
Posts: 42
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)


Re: $input() doesn't ignore 'o' flag [Re: DooMaster] #269695 13/12/21 09:17 AM
Joined: Dec 2002
Posts: 5,034
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,034
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.