Fixed minor things

* Ban's didnt work anymore for users who joined from other realms.
* Removed old code which isnt mantein anymore.