Showname fix, case insensitive commands.
- Fixed a problem wherein if you had 'Custom shownames' on, your client would display the foldernames of characters if their user hadn't given temselves a custom showname, instead of the character's showname.
This commit is contained in:
		
							parent
							
								
									c460a5b795
								
							
						
					
					
						commit
						8e39224890
					
				@ -340,7 +340,7 @@ class AOProtocol(asyncio.Protocol):
 | 
			
		||||
                                     self.ArgType.INT, self.ArgType.INT, self.ArgType.INT, self.ArgType.INT,
 | 
			
		||||
                                     self.ArgType.INT, self.ArgType.INT, self.ArgType.INT):
 | 
			
		||||
            msg_type, pre, folder, anim, text, pos, sfx, anim_type, cid, sfx_delay, button, evidence, flip, ding, color = args
 | 
			
		||||
            showname = self.client.get_char_name()
 | 
			
		||||
            showname = ""
 | 
			
		||||
        elif self.validate_net_cmd(args, self.ArgType.STR, self.ArgType.STR_OR_EMPTY, self.ArgType.STR,
 | 
			
		||||
                                     self.ArgType.STR,
 | 
			
		||||
                                     self.ArgType.STR, self.ArgType.STR, self.ArgType.STR, self.ArgType.INT,
 | 
			
		||||
@ -442,7 +442,7 @@ class AOProtocol(asyncio.Protocol):
 | 
			
		||||
            return
 | 
			
		||||
        if args[1].startswith('/'):
 | 
			
		||||
            spl = args[1][1:].split(' ', 1)
 | 
			
		||||
            cmd = spl[0]
 | 
			
		||||
            cmd = spl[0].lower()
 | 
			
		||||
            arg = ''
 | 
			
		||||
            if len(spl) == 2:
 | 
			
		||||
                arg = spl[1][:256]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user