IRC for Coders

menu nicklist


Post by: Epic 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:

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 } }

Comments 0