def umode(event, server, view):
    """ This method is called everytime someone sets mode on a nick.
        It uses colours instead of @ and +.
    """
    nicka = event['nicka']
    nickb = event['nickb']
    mode = event['mode']
    chan = event['channel'].lower()
    win = view.get_win((server.getName(), chan))
    packet = '%s sets mode %s on %s\n' % (nicka, mode, nickb)
    win.update_screen(packet)
    if not mode in ('+o', '-o', '+v', '-v'):
        return
    group = win.box.get(0, 'end')
    ind = group.index(nickb)
    if mode == '+o':
        win.box.itemconfigure(ind, background='brown')
    elif mode == '-o':
        win.box.itemconfigure(ind, background='')
    elif mode == '+v':
        win.box.itemconfigure(ind, foreground='green')
    elif mode == '-v':
        win.box.itemconfigure(ind, foreground='')
