From 2b89ec586c6e70a591ac72c82a2914cab2c17e74 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 21 Jun 2014 01:18:00 +0200 Subject: [PATCH] copying recipients before iterating --- mentio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]