Skip to content

Commit

Permalink
[find] Fix error when suggestiong a correction to unknown user
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Jan 13, 2013
1 parent 85940e5 commit e7fd8f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion find.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7fd8f3

Please sign in to comment.