if ($1 == 1) return { Warn : $!dzrules( $3 , $2 ) }
if ($1 == 2) return { Kick : $!dzkick( $2 , $3 ) }
if ($1 == 3) return { Ban : $!dzban( $2 , $3 ) }

Might be sligghtly wrong but i think this is the fix.