SReject

mSL menus

Dec 28th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. Notes:
  2. +: repetition
  3. []: optional
  4. <>: non-literal
  5. |: OR
  6. &: AND
  7. (N): indicates a reference to a note
  8.  
  9. Spaces(\x20|chr 32) between items are required
  10.  
  11. Menu Definition
  12. Valid
  13. menu
  14. menu <targetlist>
  15. menu <targetlist> { }
  16. menu <targetlist> {
  17. <body> }
  18. menu <targetlist> {
  19. <body>
  20. }
  21. menu <targetlist> {
  22. <body>
  23. } <text>(1)
  24.  
  25. (1) Text will be processed as part of the menu body
  26.  
  27.  
  28. Invalid
  29. menu{
  30. menu {}
  31. menu <targetlist>{
  32. menu <targetlist> {}
  33. menu <targetlist> {<non-space & non-EOL>(1)
  34. menu <targetlist> { <text>(2)
  35. menu <targetlist> {
  36. <body>
  37. <non-space & non-EOL>}(1)
  38. menu <targetlist> {
  39. <body>
  40. }<non-space & non-EOL>(1)
  41.  
  42. (1) Will cause mIRC to miss-match brackets
  43. (2) Any trailing text at the end of the definition causes the entire menu definition to be invalid
  44.  
  45.  
  46. Menu Body
  47. [.+]<name>(1)
  48. [.+]<name>:(2)
  49. [.+]<name>:<body>
  50. [.+]:[<body>](2)
  51.  
  52. (1) mIRC will disable the option when the menu is opened
  53. (2) mIRC will skip the item when preparing the menu
Advertisement
Add Comment
Please, Sign In to add comment