Do not discard ban_ip simply because is not IPv6  + maybe improve readability?

Signed-off-by: emanuele <emanuele45@gmail.com>
Fix the hooks maintenance - thanks scripple for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>