From e7fd8f34e14823d2787b53ca979f69584d0b0385 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Sun, 13 Jan 2013 18:06:05 -0500 Subject: [PATCH] [find] Fix error when suggestiong a correction to unknown user Issue #170 --- find.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/find.py b/find.py index 5c56e8d1f6..6330532151 100644 --- a/find.py +++ b/find.py @@ -51,8 +51,10 @@ def findandreplace(willie, trigger): rnick = trigger.group(1) or trigger.nick # Correcting other person vs self. - # only do something if there is conversation to work with search_dict = willie.memory['find_lines'] + # only do something if there is conversation to work with + if rnick not in search_dict: + return sep = trigger.group(2) rest = trigger.group(3).split(sep)