in that case..
look at the on ban and on kick sections of the mirc help file (/help) you could test if ($nick == $me) and take the appropriate actions. Its not hard to code...

Good luck.

Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!