Use echo to test your scripts.

on *:text:#*:#:{
echo -a : $level($fulladdress) <=9?
;if ($level($fulladdress) <= 9) { .ban -k $chan $nick 2 ban_message }

}