summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/windows/muc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/windows/muc.py b/poezio/windows/muc.py
index 897b9f81..ee57ab6e 100644
--- a/poezio/windows/muc.py
+++ b/poezio/windows/muc.py
@@ -47,10 +47,11 @@ class UserList(Win):
self.cache = new
self.refresh(users)
return
- for i in range(len(old)):
- if old[i] != new[i]:
+ for a, b in zip(old, new):
+ if a != b:
self.cache = new
self.refresh(users)
+ return
def refresh(self, users):
log.debug('Refresh: %s', self.__class__.__name__)