You have to give us time to read and review your post....3 hours is not much time, and in this forum, multiple postings to a question doesn't "bump" them, but rather, can make it look like it's already been answered.

Code:
 #Kickpro on
on @!*:kick:#:{
if ($knick == $me) && ($nick == Chanserv) {
 .chanserv invite $chan $me
 halt
 }
elseif ($knick == $me) {
.set %kchan = $chan
.set %knick = $nick
.chanserv unban %kchan
.chanserv invite %kchan
.chanserv deop %kchan %knick
} 
}
on *:join:%kchan:{
if (%knick isin %kchan) {
.mode %kchan -o %knick
/ban -k %knick 3 kick revenge
.timer 1 20 .unset %kchan | unset %knick
}
} 
#Kickpro end 
 


I removed the pipes simply to make it easier for me to read and edit. If you want to put them back, it shouldn't matter.
I'm not willing to get things confusing in the few rooms where I have ops, in order to test this, but I think it should work.