mirror of
https://github.com/aidygus/LinVAM.git
synced 2024-11-23 09:18:04 +11:00
simplify command splitting
This commit is contained in:
parent
d4753faa08
commit
13a64acfbd
@ -211,11 +211,7 @@ class ProfileExecutor(threading.Thread):
|
||||
w_commands = self.m_profile['commands']
|
||||
flag = False
|
||||
for w_command in w_commands:
|
||||
parts = []
|
||||
if w_command['name'].find(',') != -1:
|
||||
parts = w_command['name'].split(',')
|
||||
else:
|
||||
parts.append(w_command['name'])
|
||||
parts = w_command['name'].split(',')
|
||||
|
||||
for part in parts:
|
||||
if part.lower() == p_cmdName:
|
||||
|
Loading…
Reference in New Issue
Block a user