mIRC Home    About    Download    Register    News    Help

Print Thread
Nick change on disconnect #221456 19/05/10 10:12 AM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
Hmm was wondering how to set script/alias or w/e to change from secondary to primary nick on disconnect,being lazy lately to type it=P

Its gonna be helpful especially when i am afk

Re: Nick change on disconnect [Re: mbab] #221458 19/05/10 01:01 PM
Joined: Apr 2010
Posts: 966
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 966
Code:
on *:DISCONNECT:{ if ($me != $mnick) { nick $v2 } }


I am SReject
My Stuff
Re: Nick change on disconnect [Re: FroggieDaFrog] #221461 19/05/10 02:55 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
Where should i put that, in remotes or aliases?

Re: Nick change on disconnect [Re: mbab] #221463 19/05/10 03:35 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025

Remotes.

Re: Nick change on disconnect [Re: RoCk] #221698 27/05/10 08:27 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
This doesnt work

Re: Nick change on disconnect [Re: mbab] #221711 28/05/10 04:22 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
The code provided may need a timer:
Code:
on *:disconnect:{
  if $me != $mnick { .timermnick 1 2 nick $v2 }
}

Re: Nick change on disconnect [Re: mbab] #221714 28/05/10 05:41 AM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025


You could just add it to your perform list.

mnick nick1
anick nick2

Re: Nick change on disconnect [Re: RoCk] #223071 13/07/10 06:17 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline
Pikka bird
Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
on *:disconnect: {
server <add> port -i <Nick>
unset %test_ok $+ $nick
}

Re: Nick change on disconnect [Re: Venus78] #223172 16/07/10 05:50 PM
Joined: Sep 2009
Posts: 52
Z
ziv Offline
Babel fish
Offline
Babel fish
Z
Joined: Sep 2009
Posts: 52
Put this in your remote:

Code:
on 1:disconnect:{ server $server }
on 1:connect:if $me != $mnick { nick $v2 }


ziv.