Fix for banning (hopefully)

I think i squelched the last bug in the netmask calculations. This will probably need some testing still, but it should work. It looks like more than it actually ist because it also incorporates your changes to the time calculations etc.