mIRC Home    About    Download    Register    News    Help

Print Thread
#44171 26/08/03 01:51 AM
Joined: Dec 2002
Posts: 10
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Dec 2002
Posts: 10
i have a script to auto op or voice people in a chan but i only want to do it when the network service is down. how would i add to it, to make it only do it when the network service is down and how can i specify which server to do it to.

on 1:join:#chan: { mode $chan +o $nick }

Last edited by Doorsdown; 26/08/03 01:55 AM.

-=Doorsdown=-
Needs help!
#44172 26/08/03 02:07 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If the network service has a nickname that's only in use when it's online you could add the nickname to your notify list and use this:
Code:
on 1:join:#chan:{
  if ( $server == [color:green]irc.server.com[/color] ) && ( $notify([color:green]nickname[/color]).ison ) {
    mode # +o $nick
  }
}

#44173 26/08/03 04:42 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
!$notify(nick).ison -- need to negate to find out if the service is offline.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard