mIRC Home    About    Download    Register    News    Help

Print Thread
#21720 01/05/03 03:15 AM
M
mattiaz
mattiaz
M
i've made a channel specific script in which a use..
Code:
menu channel {
  script setup: /setup
}

but i only want it to appear in that channel,
not every channel i am on.. also if possible
it should only appear on a specific network..

Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
Code:
menu channel {
  $iif([color:blue]#Channelname[/color] == # && $network == [color:darkblue]network[/color],script setup):setup
}

Change the blue #channelname and the network

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
menu channel {
$iif($active == #chan, Script Setup):/setup
}

H
hatch
hatch
H
How can I create submenus with it? I tried to put $iif around every menuitem, but it renders without submenus like this:

ESL Support
.Queue
..open
..close
.Users
..next
..done

Code:
menu channel {
  $iif( $chan == #esl.support, ESL Support )
  $iif( $chan == #esl.support, .Queue )
  $iif( $chan == #esl.support, ..open ):msg #esl.support !openque
  $iif( $chan == #esl.support, ..close ):msg #esl.support !closeque
  $iif( $chan == #esl.support, .Users )
  $iif( $chan == #esl.support, ..next ):msg #esl.support !next
  $iif( $chan == #esl.support, ..done ):msg #esl.support !done
}


What am I doing wrong?

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
you are using $chan, not $active >:D $chan is only for events, not for "independant" compares.

H
hatch
hatch
H
well, doesn't work either, it renders the same way.

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
u also don't have the ".." "..." or "." prefixed infront of the $iif's to "indent" the popups.

H
hatch
hatch
H
That's it, thanks smile


Link Copied to Clipboard