mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
clear linedata if 'from' found
This commit is contained in:
@ -276,6 +276,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
if len(linedata) > 1 and ' '.join(linedata).startswith('(') and ' '.join(linedata).endswith(')'):
|
if len(linedata) > 1 and ' '.join(linedata).startswith('(') and ' '.join(linedata).endswith(')'):
|
||||||
output_line['from'] = ' '.join(linedata)[1:-1]
|
output_line['from'] = ' '.join(linedata)[1:-1]
|
||||||
raw_output.append(output_line)
|
raw_output.append(output_line)
|
||||||
|
linedata = []
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# if just one more field, then it's the remote IP
|
# if just one more field, then it's the remote IP
|
||||||
|
Reference in New Issue
Block a user