From 68018d9c2a3ecff4cf042aa24ef55ee8588c152f Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 21 Jun 2014 01:18:00 +0200 Subject: copying recipients before iterating --- mentio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mentio.py') diff --git a/mentio.py b/mentio.py index d27eac1..8508301 100644 --- a/mentio.py +++ b/mentio.py @@ -15,7 +15,7 @@ def onChat(event): words = event.getMessage().split(" ") recipients = event.getRecipients() - for recipient in recipients: + for recipient in recipients[:]: rec_words = words[:] # copy for i in range(len(rec_words)): word = rec_words[i] -- cgit v1.2.3