'Implement unbanning'

def func(self):

    banlist = ServerConfig.objects.conf('server_bans')
    if (not self.args):
        self.caller.msg(list_bans(banlist))
        return
    try:
        num = int(self.args)
    except Exception:
        self.caller.msg('You    must    supply    a    valid    ban    id    to    clear.')
        return
    if (not banlist):
        self.caller.msg('There    are    no    bans    to    clear.')
    elif (not (0 < num < (len(banlist) + 1))):
        self.caller.msg(('Ban    id    |w%s|x    was    not    found.' % self.args))
    else:
        ban = banlist[(num - 1)]
        del banlist[(num - 1)]
        ServerConfig.objects.conf('server_bans', banlist)
        self.caller.msg(('Cleared    ban    %s:    %s' % (num, '    '.join([s for s in ban[:2]]))))
