mIRC Home    About    Download    Register    News    Help

Print Thread
#41703 14/08/03 04:10 AM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
in my statu popups i have list of some networks things and above everything there is name of network so it looks like this

.Networks
..( $+ $network $+ ):return
..-
..
..
.. all this down are another network things

SO if $network is valid then it will show (EFnet) of (IRCnet)
BUT if it is not then it will show this ( ) now that bothers me
so i tried on connect to do this:

if ($network == $null) { .timer 1 2 | .set %ntw unknown | else { .timer 2 2 | .set %ntw $network } }

BUT if i give

.Networks
..( $+ %ntw $+ ):return
..-

then it wont work at all, so if anyone has an idea i would be gratefull

#41704 14/08/03 04:41 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I am sorry I probably didn't understand what you are asking for but do you mean something like..
Code:
menu status {
  Networks
  .$iif($network != $null, ( $+ $network $+ ), (Unknown)) : { do whatever }
}

#41705 14/08/03 04:43 AM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
Networks
.$iif($network,$+($chr(40),$ifmatch,$chr(41))) : return

#41706 14/08/03 05:18 AM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
okay, Jerk you gave me good code but when i come on network that does not have ID then instead something to show it shows nothing and i would like to show (unknown) so if anyone can edit this last code pls.

#41707 14/08/03 06:05 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Networks
.$iif($network,$+($chr(40),$ifmatch,$chr(41)),$+($chr(40),$server,$chr(41))) : return


new username: tidy_trax
#41708 14/08/03 07:27 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
great, this is nicer smile), thanx

#41709 15/08/03 02:59 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
np grin


new username: tidy_trax
#41710 16/08/03 02:50 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
.$+($chr(40), $iif($network,$network,$server), $chr(41)): return


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard