Well, you can always hide who you were by changing your IP/DNS information. The best a script like this would tell you is when a person from the same IP/DNS rejoined using a different nick.

That's not too difficult to code, but probably isn't what you are looking for.