Hey all, I have a script that has:

Code:
menu menubar,status,channel {
  AutoJoin Wizard
  .$style($iif($group(#ajwiz).status == on,1)) Active:$iif($group(#ajwiz).status == on,.disable,.enable) #ajwiz
  .-
  .Configure:ajwiz
  .-
  .$iif(#,Add This Channel):ajwiz.add.channel # | return $input(# added to the autojoin list successfully!,io,Channel Added)
}


I have tried to put it into one of my popups menus.

Code:
$iif(#,Add This Channel):ajwiz.add.channel # | return $input(# added to the autojoin list successfully!,io,Channel Added)


And this is the error that is returned:

Code:
(AJWIZ.ADD.CHANNEL) invalid command


It only returns an error when I use my popup menu, not the "menu menubar,status,channel" How can this be fixed?

Thanks in advance,


Matt.