mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2004
Posts: 2
V
vlncent Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
V
Joined: Feb 2004
Posts: 2
for each server a specific command.
like this:
Code:
  
on *:start: { /dll stuntour.dll load_stunnel 
  /server irc.link-net.org:7000 -i NICKNAME /msg bot1 !invite user pass
  /server -m irc.efnet.nl -i NICKNAME1 /msg bot2 !invite user pass  /msg bot3 !invite user pass

  /server -m irc.efnet.org:6668 -i NICKNAME22  /msg bot6 !invite user pass

}



I want to autoconnect to a server as mirc starts up and want to perform specific actions for specific servers..

but this isn't working?

can someone help me?

TIA

Last edited by vlncent; 09/02/04 12:36 AM.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, you can't just tack commands onto other commands ad hoc.
The msging bots should be done from an on connect event.
Code:
on *:start: {
  dll stuntour.dll load_stunnel
  server irc.link-net.org:7000 -i NICKNAME
  server -m irc.efnet.nl -i NICKNAME1
  server -m irc.efnet.org:6668 -i NICKNAME22
}
on *:connect:{
  if  $network == Linknet { msg bot1 !invite user pass }
  if $network -- EFnet {
    if $server == irc.efnet.nl {
      msg bot2 !invite user pass
      msg bot3 !invite user pass
    }
    else msg bot6 !invite user pass
  }
}

If the $server check doesn't work out, change it to checking your nick
Code:
  if $network -- EFnet {
    if $server == irc.efnet.nl { }
    else msg bot6 !invite user pass

Joined: Feb 2004
Posts: 2
V
vlncent Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
V
Joined: Feb 2004
Posts: 2
TY!
it worked...

1 problem

i can invite myself to the same chan through a different bot...
can i check if i am allready on a chan (which is invite only?)
in the same script?

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah sure, check if you aren't on it before doing the commands
  • if $me !ison #channelname { invite stuff }
!ison - ! = not, so (not)ison channel


Link Copied to Clipboard