Update commandManager.py

This commit is contained in:
chrys87 2016-09-27 16:04:21 +02:00 committed by GitHub
parent 4b8b410a1a
commit 4422e9f47b

View File

@ -119,7 +119,9 @@ class commandManager():
self.env['commandInfo']['currCommand'] = ''
def queueCommand(self, command):
if command == '':
return
self.env['commandInfo']['currCommand'] = command
def commandExists(self, command, section = 'commands'):
return( command.upper() in self.env['commands'][section])
return( command in self.env['commands'][section])