Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/activity.py b/activity.py
index f6f3186..9b15453 100644
--- a/activity.py
+++ b/activity.py
@@ -234,17 +234,14 @@ class MemorizeActivity(Activity):
_logger.debug('Joined an existing shared activity')
- self.found = 0
for buddy in self._shared_activity.get_joined_buddies():
- _logger.debug("buddy joined - _joined_cb: %s (get buddies of activity and add them to my list)", buddy.props.nick)
- self.game.add_buddy(buddy)
- if buddy == self.owner:
- self.found = 1
-
- if self.found == 0:
- _logger.debug("buddy joined - _joined_cb: Not foud myself in buddy list - will add myself at end of the list.")
- self.game.add_buddy(self.owner)
+ if buddy != self.owner:
+ _logger.debug("buddy joined - _joined_cb: %s "
+ "(get buddies of activity and add them to my list)",
+ buddy.props.nick)
+ self.game.add_buddy(buddy)
+ self.game.add_buddy(self.owner)
self.initiating = False
self._sharing_setup()