ID = "MODE"

def execute(self, sendMsg, prefix, command, params):
    print prefix, params
    splitted = params.split(" ")
    
    print splitted
    if len(splitted) == 3:
        
        chan = self.retrieveTrueCase(splitted[0])
        modes = splitted[1]
        name = splitted[2]
        
        add = modes[0] == "+" 
        perm = ""
        
        if self.Bot_Auth.doesExist(name) and not self.Bot_Auth.isRegistered(name) and not self.Bot_Auth.isQueued(name):
            self.whoisUser(name)
        
        for char in modes[1:]:
            if char == "v" and perm == "": perm = "+"
            if char == "o": perm = "@"
            
        for i in range(len(self.channelData[chan]["Userlist"])):
            user, pref = self.channelData[chan]["Userlist"][i]
            if user == name:
                if add == True:
                    if pref != "@":
                        self.channelData[chan]["Userlist"][i] = (user, perm)
                else:
                    
                    self.channelData[chan]["Userlist"][i] = (user, "")    
                
                break
    
    #if modes[0] == "+" and "v" in modes:
    #    pass
    
    
    
    #NyanServ!<EMAIL> #SinZationalMinecraft +v Yoshi2