Dumn dont kick me from $chan 'Dymn' is just an unneeded typo.
I always thought mirc wouldn't rememer who kicked you out of channel. Upon returning, the revenge kick usually becomes null. Try this one:
on @!*:KICK:#: {
if ($knick == $me) {
var -g %x $nick
join $chan
}
}
on me:*:JOIN:#: {
if ($me !isop $chan) { cs op $chan $v1 }
$iif(%x !ison $chan,mode $chan -o $v1,return)
kick $chan %x Don't kick me! | unset %x
}