cache command name (#390)
This commit is contained in:
		@ -972,7 +972,8 @@ func (c *Command) Name() string {
 | 
				
			|||||||
	if i >= 0 {
 | 
						if i >= 0 {
 | 
				
			||||||
		name = name[:i]
 | 
							name = name[:i]
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return name
 | 
						c.name = name
 | 
				
			||||||
 | 
						return c.name
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// HasAlias determines if a given string is an alias of the command.
 | 
					// HasAlias determines if a given string is an alias of the command.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user