yeah its simple but i use it all the time so i thought i would post it here
replace the word yourpass and yourchan with the actually password and channels
on 1:NOTICE:*NickServ IDENTIFY*:?: { if ($nick == Nickserv) { /nickserv identify yourpass } { /join yourchan } { /join yourchan }
}
My Code:
I Coded it all :)
on *:start: {
hmake Config 10
hmake IpLog 25
hload IpLog IpLog.hash
hload Config Config.hash
window -zk[0] @Raws
window -n @Raws
if ($hget(Config,Servers) == $null) { setupserver $input(There Is No Servers To Connect To.) | halt }
server $gettok($hget(Config,Servers),1,32)
set %svrnum 2
:top
if ($gettok($hget(Config,Servers),%svrnum,32) == $null) { unset %svrnum | halt }
server -m $gettok($hget(Config,Servers),%svrnum,32)
inc %svrnum 1
goto top
}
on *:connect: {
if ($hget($network) == $null) {
hmake $network 10
}
if ($exists( $+ $network $+ .hash) == $true) { hload $network $network $+ .hash }
perform
set -u10 %startup yes
}
alias perform {
if ($hget($network,Nickname) == $null) { set %setupsvr $network | setupserver | halt }
if ($hget($network,Channels)) { join $hget($network,Channels) }
nick $iif(%tempnick,%tempnick,$hget($network,Nickname))
ns identify $dcode($hget($network,Password),m)
if ($hget($network,OperNick)) {
oper $dcode($hget($network,OperNick)) $dcode($hget($network,OperPass))
/mode $me +iwxoghaAsNWtTq
/mode $me +s +cFkevGnNqsSo
}
window -n \"status window\"
}
Perform is triggered when you connect to a server/network & performs the commands, network-specific or not.
You can put it in On Connect too, you just need to put conditions for it to be network/sever-specific.
That\'s why I said it\'s the same.
From the mIRC Help File:
Perform...
The perform on connect option allows you to specify a set of commands that you want mIRC to perform when it connects to a specific IRC network. You can specify a set of commands to be performed for All Networks, for a specific network, and for any Other networks that are not specifically assigned their own commands.
one reason to not put it in the on connect portion, is that not all servers use nickserv. So If you join a server that doesnt, they probably dont prohibit the nick \'nickserv\' so if someone is using it... You\'ll be giving them a password. Which may or may not be the same password you use for other things.