Mantis Bug Tracker

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000140mSLDevSyntax Checkingpublic2013-04-15 18:242013-11-01 12:13
ReporterWims 
Assigned Toadministrator 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000140: error message on empty menu item body
DescriptionLoad this code:

alias test {

sclick:

}

msldev reports an error (warning) :
C:/Users/Wims/Desktop/CaveDwellers/CaveDesigner.mrc 21:9 Menu The menu item specified will never be displayed without any code.

I think that for reserved keyword event here (sclick, dclick etc), it shouldn't say that, rather "the <event> definition is empty" or similar where <event> is for example sclick, because it would never show anyway.

menu @win {
sclick:
test:echo -a
test1:
}
does work for the 'test' item

I also think it should say "empty definition" for custom empty definition like 'test1' here.
TagsNo tags attached.
Beta mIRC version?
mIRC Version
Attached Files

- Relationships

-  Notes
(0000101)
administrator (administrator)
2013-05-16 19:36

They are not always keywords, consider the following:

menu * {
  aaa:echo -a foo
  sclick:echo -a @@@
  bbb:echo -a bar
}

Which works as a normal button named 'sclick' when right clicking in the status window, for example.
(0000104)
Wims (reporter)
2013-05-17 07:53

Right, you can set this as resolved!
Btw, the shitty codes you can see are made on purpose to broke your program :), i don't actually use them as it is, stop complaining!

- Issue History
Date Modified Username Field Change
2013-04-15 18:24 Wims New Issue
2013-05-16 19:36 administrator Note Added: 0000101
2013-05-17 07:53 Wims Note Added: 0000104
2013-11-01 12:13 administrator Status new => closed
2013-11-01 12:13 administrator Assigned To => administrator
2013-11-01 12:13 administrator Resolution open => no change required


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker