Dusting URL stacking modules: fixing error when using channel list as response

This commit is contained in:
nemunaire 2015-09-21 02:23:15 +02:00
commit be776405e3
2 changed files with 8 additions and 6 deletions

View file

@ -89,7 +89,8 @@ def parseresponse(msg):
if o.scheme != "":
if o.netloc == "" and len(o.path) < 10:
continue
if msg.channel not in LAST_URLS:
LAST_URLS[msg.channel] = list()
LAST_URLS[msg.channel].append(url)
for recv in msg.receivers:
if recv not in LAST_URLS:
LAST_URLS[recv] = list()
LAST_URLS[recv].append(url)
return msg