[ticket/4906] Fix cause in which were banned to much

Before it would have banned everything in 18.* if you
enter 18.0.0.0-18.255.127.242

PHPBB3-4906