Auto-Join Script for MIRC
This is an example of how to create a script to auto-join on IRC.
on *:START:{
.server chat.eu.freenode.net -i
.server -m irc.network -i (this is the syntax you need to use to utilize this script for other networks.)
}
on *:NOTICE:*This nickname is registered and protected*:*:{
if ($nick == NickServ && $network == freenode ) {
.msg nickserv IDENTIFY }
elseif ($nick == NickServ && $network == ) {
.msg nickserv IDENTIFY }
}
on *:NOTICE:*Password accepted*:*:{
if ($nick == NickServ && $network == freenode) {
join
}
elseif ($nick == NickServ && $network == ) {
join
}
}
Now I will explain this script:
1st Part:
on *:START:{
.server freenode -i
.server -m irc.network -i (this is the syntax you need to use to utilize this script for other networks.)
}
In this part, we define which networks we want the script to connect to. But pay attention to 2 important factors:
- Do not forget to use the argument “-m” if you want to use the script to connect to multiple networks.
2nd Part:
on *:NOTICE:*This nickname is registered and protected*:*:{
if ($nick == NickServ && $network == freenode ) {
.msg nickserv IDENTIFY }
elseif ($nick == NickServ && $network == ) {
.msg nickserv IDENTIFY }
}
In this part, we perform the nick identification. And if you want to have multiple sessions on the same network, you can use an “elseif”.
3rd Part:
on *:NOTICE:*Password accepted*:*:{
if ($nick == NickServ && $network == freenode) {
join
} elseif ($nick == NickServ && $network == ) {
join
}
}