on *:TEXT:*:?:{
var %chan = [color:red]#Channel[/color]
if ($me isop %chan) && ($nick ison %chan) {
ban -ku[color:red]X[/color] %chan $nick 2
}
}
Replace...
#Channel - The channel to ban from.
X - The duration of the ban,
in seconds. It follows directly after the 'u', there is no space between the two.