I remember you can modify the popup menus so it will only show on certain conditions but i can't remember how. For example, so the Op or Deop only shows when you're an op.. something with $iif ?
Yes. Your example would be like this:
$iif($me isop #,Op):{ op command here }
It doesn't work, it just cuts off the menu and it goes on in the previous level of the menu
Well it does work, it's probably your script being messed up in some part. You might want to post your menu code so we could work it out..
.$iif($me isop #, Op, $style(2) Op):/some command
never mind, it works. i had to put a . in front of it so it would be an option in the same level.
Oh, didn't understand that "level" you're talking about was that.
ok then
Oh i mean, when you make a menu you use the .to make an item and the .. for a submenu and so on, right ? well that's what i was referring to, it continued the rest of the commands in the menu 1 level up.
You can also disable the whole block of popups like this
$iif($me !isop #,$style(2)) Op commands
.Op:mode # +o $$1
.Deop:mode # -o $$1