The code I gave you doesn't even set a ban so I guess you've modified it. Anyway, to set the ban you want to do you can use ban -k $chan $nick 2 Flooding. instead of kick $chan $nick Flooding.