• 0

IRC Script


Question

on *:Connect: { 
  /nick david
  /ns identify ***
  /oper david ***
  /samode #main +q david
}

How do I get that to run on connect just for a certain server?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Quite simple really.

on *:CONNECT:{
  if ($server == servername) {
	nick david
	ns identify ***
	oper david ***
	samode #main +q david
  }
}

Replace server name with the server address, and depending on the port of the server in question, you'll need to specify that as well, although mIRC defaults to 6667 if no port is specified I believe. So for example I'd replace 'servername' with 'irc.quakenet.org'

When executing commands via a script, the '/' is unnecessary, i.e. nick david would be the same as /nick david

on *:START:{
  server -m neowin
}

that should work, and then stick those commands in your perform for that server

If he connects to multiple servers then that script is useless. He wants these commands to execute upon connection to a certain server, not on start up.

Link to comment
Share on other sites

  • 0
If he connects to multiple servers then that script is useless. He wants these commands to execute upon connection to a certain server, not on start up.

I wouldn't call it useless, but I see what you mean..

I used a similar script for years (with 3 or 4 servers in it), that would just connect to those servers and then execute what i put in my perform for those servers accordingly..

it worked for me ;)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.