mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Make getCommandHelp respect supybot.reply.showSimpleSyntax
This commit is contained in:
		
							parent
							
								
									026a683dec
								
							
						
					
					
						commit
						338a899782
					
				| @ -1199,8 +1199,11 @@ class Commands(BasePlugin): | ||||
| 
 | ||||
|     def getCommandHelp(self, command): | ||||
|         method = self.getCommandMethod(command) | ||||
|         help = getHelp | ||||
|         if conf.get(conf.supybot.reply.showSimpleSyntax, dynamic.msg.args[0]): | ||||
|             help = getSyntax | ||||
|         if hasattr(method, '__doc__'): | ||||
|             return getHelp(method, name=formatCommand(command)) | ||||
|             return help(method, name=formatCommand(command)) | ||||
|         else: | ||||
|             return format('The %q command has no help.',formatCommand(command)) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Vega
						James Vega