don't attempt recursion when the subcmd is, in fact, an empty string (i.e. text was '[]')

This commit is contained in:
Brian S. Stephan 2010-10-12 11:54:43 -05:00
parent 95a27cc44b
commit 2a1ef11d95
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class Module(object):
attempt = what
if start_idx == -1 or end_idx == -1:
if start_idx == -1 or end_idx == -1 or len(subcmd) == 0:
# no nested commands at all if replypath is a real value, so don't do a damn thing
if replypath is not None:
return attempt