menu nicklist and $0 etc - 01/11/11 01:05 AM
Consider this:If nothing is selected in the nicklist, right clicking an empty area of the nicklist trigger the menu but:
-the value of $0 is 1 when the menu is displayed while $1 is $null
-the value is correctly set to 0 when you execute the command.
Same problem occurs if you select more than one (let's say 2) nickname and then rightclick on one of them, the value of $0 is 1 and only $1 exists before executing the command, after, values are correct.
Code:
menu nicklist { $qt($0) - $qt($1-) : echo -a $0 -- $qt($1-) -- $qt($sline($active,1)) -- $qt($snicks) }
-the value of $0 is 1 when the menu is displayed while $1 is $null
-the value is correctly set to 0 when you execute the command.
Same problem occurs if you select more than one (let's say 2) nickname and then rightclick on one of them, the value of $0 is 1 and only $1 exists before executing the command, after, values are correct.