Rewrite ban/mute command handling

Signed-off-by: DziNeIT <dzineit@live.co.uk>