menu nicklist {
tkick: timer 1 20 ban -ku # $$1 5 $$?="Reason"
}
Kick requires a nick, as ban will work with an address. As above, the ban command will kick the person using the address matching mask 5, and then unset immediately (equivalent of kicking them). I left the Reason option alone, and as it's coded is required, even though the actual kick/ban doesn't require a reason.
You can change the format of the address that's used by changing the 5 in the ban command to another number.
Read /help $mask for details regarding the other options available.