Commit related to the last one

This commit is contained in:
Miroslav Stampar 2014-04-10 21:29:59 +02:00
parent 096ce7881e
commit 7f371c499d

View File

@ -201,7 +201,7 @@ class Agent(object):
else:
query = kb.injection.prefix or prefix or ""
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')):
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')) and not (query and query[-1] == '('):
query += " "
query = "%s%s" % (query, expression)