mIRC Homepage
Now, here's the thing. I already know how to connect on startup to the same network twice. What I want to specifically know if there's a way to do nick enforcement on two nicks on the same mirc client on the same network.

Code:
on *:start: { 
  server server.name -n nick1 -j channels
  server -m server.name -n nick2 -j channels
}

on *:NOTICE:*/msg NickServ IDENTIFY*:?: { 
  if ($nick == NickServ && $network == EsperNet) { iden } 
}


There seems to be the problem of when I set the names.. let's say Bobatron as nick1 and Nickatron as nick2, sometimes it'll set them opposite of what I wanted, like Nickatron as nick1 and Bobatron as nick2. Is there a reason it'd do that when I'm telling it which nick to use first?

Also, I do have a working script that does nick enforcement, but as far as I know it only works if you connect to a network once, but I can't use it as I am connecting TWICE.

Here is the script, though I am changing nicks and such to keep it simple.

Code:
on *:start: { server irc.esper.net 6667 }

on *:connect:{ if ($network == EsperNet) { nick Nickatron } }

on *:NOTICE:*/msg NickServ IDENTIFY*:?: { if ($nick == NickServ && $network == EsperNet) { iden } }

raw 433:*:{ if ($2 == $mnick && $network == EsperNet) { ghost $mnick } }

on *:NOTICE:*has been ghosted.*:*:{ if ($network == EsperNet) { nick $mnick } }

on *:NOTICE:*You are now identified for*:?: { 
  if ($nick == NickServ && $network == EsperNet) { 
    join #Channeltron
  } 
}


... To re-iterate, since I know I ramble on a bit, what I want it to do is 'if this is network connection 1, go with this nick setup. network connection 2, go with this one'
Since no one replied I went and got it done myself. Took some searching.

Code:
on *:start: { 
  server network1 6667 -i Soul
  server -m network1 6667 -i Maka
  server -m network1 - i Soul
}

on *:connect:{
  if ($network == network1 && $cid == 1) { nick Soul } 
  elseif ($network == network1 && $cid != 1) { nick Maka } 
  elseif ($network == network2) { nick Soul } 
  else return
}

on *:NOTICE:*/msg NickServ IDENTIFY*:?: { 
  if ($nick == NickServ && $network == network1) { iden } 
  elseif ($nick == NickServ && $network == network2) { iden } 
  else return
}

raw 433:*:{ 
  if ($2 == Soul && $network == network1 && $cid == 1) { ghost Soul } 
  elseif ($2 == Maka && $network == network1 && $cid != 1) { ghost Maka } 
  elseif ($2 == Soul && $network == network2) { ghost Soul } 
  else return
}

on *:NOTICE:*has been ghosted.*:*:{
  if ($network == network1 && $cid == 1) { nick Soul } 
  if ($network == network1 && $cid != 1) { nick Maka } 
  if ($network == network2) { nick Soul } 
}

on *:NOTICE:*You are now identified for*:?: { 
  if ($nick == NickServ && $network == network1 && $cid == 1) { 
    join channels
  }
  elseif ($nick == NickServ && $network == network1 && $cid != 1) { 
    join channels
  }
  elseif ($nick == NickServ && $network == network2) { 
    join channels
  }
  else return
}
© mIRC Discussion Forums