Fixed tempban & ban. 
TODO: Rewrite it completely.