Disconnect thing...

By supergeo on Sep 30, 2005

Well, this is kind of hard to give a title. Sometimes, if people have 2 houses (Parents Divorced, want to get on at a grandparent's house, etc.) and they left their nick logged on, they have to take their alternative nickname until their original times out. That just happened in a channel with someone, and I decided to make something to be able to disconnect your other nick with a simple command. Put this code in both mIRCs. One at the one house, one at the other. Now, when you find yourself in this situation, simply type /dc , or click on the person's name in the nicklist or channel and choose Disconnect. This will send a ctcp to the nick, and if it is your alternative or main nick sending the message, it will disconnect.

Note: I didn't get the chance to test this one, if there is an error please let me know.

alias dc {
 if ($me == $mnick) ctcp $anick DISCONNECT
 else ctcp $mnick DISCONNECT
}

on *:CTCP:DISCONNECT:*:{
 if ($nick == $anick) quit
}

menu * {
 $iif($nick == $mnick,DISCONNECT): dc
}

Comments

Sign in to comment.
napa182   -  Mar 30, 2008

putting a ctcp backdoor in ur mirc is NEVER a good idea.
you should really secure it up

 Respond  
Gecko321   -  Mar 30, 2008

your CTCP command is wrong, it should be

ctcp :Disconnect::if ($Nick == $MNick) { quit }

and your alias should be

alias dc {
if ($me == $Anick) ctcp $Mnick DISCONNECT
else ctcp $mnick DISCONNECT
}

 Respond  
Andrew-|   -  Mar 30, 2008

If I find your $mnick and $anick, I could /nick $mnick or /nick $anick and /ctcp $anick DISCONNECT or /ctcp $mnick DISCONNECT.

 Respond  
Pariah   -  Sep 30, 2005

yeah not all servers have NickServ, or for that matter allow nickname registration.

 Respond  
Raid   -  Sep 30, 2005

Why not do a ghost command? Or do not all servers have this? /ns ghost (nick) (pass)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.