you could use this
on *:JOIN:#YourChan:{
timer 1 5 if ($me isop $chan) { .msg Chanserv AKICK $chan ENFORCE }
}
the problem with your code was that if you were to join the chan, it wouldn\'t have worked. you\'d want to consider using somekind of flood protection to prevent flooding off when mass joins happen.
btw.. it\'s almost 3 pm here so i couldn\'t have known that.. but still, it\'s not an excuse for posting bad snippets. get some sleep and return with a better version