Fix undefined variable in buddy.py

This commit is contained in:
moyamo 2015-12-17 10:06:11 +02:00
parent 9434b1db6f
commit 40131a06eb

View file

@ -123,7 +123,7 @@ class BuddyList(dict):
else:
self.session.sendSync([number], delta = True, interactive = True)
self.session.subscribePresence(number)
self.session.requestStatuses(contacts, success = self.onStatus)
self.session.requestStatuses([number], success = self.onStatus)
buddy = Buddy(self.owner, number, nick, "", groups, image_hash)
self[number] = buddy
self.logger.debug("Roster add: %s", buddy)