fix detecting the bans of the user because we were not checking for ip bans
Merge branch 'master' into stable