Hmmm... try to use variables, something like this:
on 1:kick:#:{
if ($knick == $me) { set %kick $chan $nick }
}
on 1:op:#:{
if (($gettok(%kick,1,32) == $chan) && ($opnick == $me)) { kick # $gettok(%kick,2,32) don`t kick me | unset %kick }
}
this is just example.