mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2007
Posts: 7
N
Nemmet Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Oct 2007
Posts: 7
I find myself pinging out often on mIRC, meaning when my internet comes back, I rejoin the channel as "nickname2" and I have to wait until "nickname" pings out before I can switch back to it. Is there a script I can use to make it automatically /nick me back to that original nickname after it pings out?

I want this to happen:

nickname2 has joined #channel
nickname has quit IRC (Ping Timeout)
nickname2 is now known as nickname

I want the script to /nick me back to nickname automatically once nickname pings out.

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Code:
on *:quit:{
  if ($nick == nickthatquit) { nick newnick }
}


Just change the two values.


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Assuming that the nick is your main nick as set in the Options dialog you can use:
Code:
on !*:quit:{
  if ($nick == $mnick) nick $mnick
}

Otherwise you'll have to hardcode the nickname as in Jigsy's example.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
I use a different method (as seen here).

It's not reliant upon you joining the channel again..

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Oops. :P

I forgot about $mnick. :P


Here's another method, assuming you use notify.

Code:
on !*:unotify:{
  if ($nick == $mnick) { nick $mnick }
}


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Oct 2007
Posts: 7
N
Nemmet Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Oct 2007
Posts: 7
ah, one more thing I forgot; I'm on different usernames on different irc servers, so how can I make this only happen in a certain channel?

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Jigsy

on !*:unotify:{
if ($nick == $mnick) && ($network == NETWORK) { nick $mnick }
}


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2007
Posts: 7
N
Nemmet Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Oct 2007
Posts: 7
thanks.


Link Copied to Clipboard