This simple script will ghost the person that changes his nick to your nick immediately, it will also ghost him if he parts a channel you're on or join a channel you're on.
It only works with NickServ, and if you own the nick you want ghosted.
Enjoy :)
on *:NICK: {
if ($newnick == <the nick you want ghosted> && $nick != $me) {
ns ghost $newnick <your nickserv password>
}
}
on *:JOIN:#: {
if ($nick == <the nick you want ghosted> && $nick != $me) {
ns ghost $nick <your nickserv password>
}
}
on *:PART:#: {
if ($nick == <the nick you want ghosted> && $nick != $me) {
ns ghost $nick <your nickserv password>
}
}
You can use an alias and the $event identifier to shorten the size of the script for about 17 bytes:
on *:nick:ghost
on *:join:#:ghost
on *:part:#:ghost
alias -l ghost {
if ($istok(join part,$event,32)) && ($nick == <the nick you want ghosted>) && ($nick != $me) {
ns ghost $nick <your nickserv password>
}
elseif ($event == nick) && ($newnick == <the nick you want ghosted> && $nick != $me) {
ns ghost $newnick <your nickserv password>
}
}