This topic was discussed with author of the question in the IRC chat and a solution was found. The problem has been resolved.
The task was to hide (make inaccessible) a certain menu item, for example the item "Slaps", if the user (You) has no rights "Op" or "Voice" on the channel.

An example of a script for a menu:
Code
menu nicklist,query {
  $iif($menu == nicklist,$iif($meop($chan),Slaps),Slaps)
  .Example Item1
  ..Example Item2: /me tests the fish tail slap on $$1 !!! 8-]
}
alias meop { if ($me isop $1) || ($me isvoice $1) { return $true } }


Perhaps it will be useful for someone else to know and will come in handy in the future, to solve a similar problem.

Last edited by Epic; 02/12/21 04:10 PM. Reason: fixed in the code - menu hide should work only in nicklist

🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples