mIRC Homepage

Menu period error

Posted By: Nillen

Menu period error - 23/09/15 03:26 PM

It's not a major bug, just a syntax error I caused without thinking. Found a peculiar interaction from it and thought I'd share.

Tested using 7.43
Code:
menu * {
.Test
..1
...1.1 : echo -a 1.1
...1.2 : echo -a 1.2
..2
...2.1 : echo -a 2.1
...2.2 : echo -a 2.2
}
Expected result: Inside Test there should be 2 submenus; 1 and 2. Each containing their own submenu.
Real result: Inside Test there is 1 submenu; 1. Inside 1 there is 1.1, 1.2 and 2.

The error is caused from having the initial period on Test.
Posted By: Khaled

Re: Menu period error - 29/09/15 09:47 AM

Thanks for the bug report. The menu creation routine is really old, so it is difficult to say for sure, but it looks like it was designed to continue to try creating the menu even if there was an error in the menu definition. I am not sure I can change this behaviour now without breaking scripts unfortunately.
© 2022 mIRC Discussion Forums