Permalink
Browse files

Fix a bug where aMSNContact.fill tries to call .decode() on a tuple. …

…Add a note smiley and then the formatted media
  • Loading branch information...
1 parent 8d915aa commit d783d8872d2214bc535fd2e38b77035cff4c2498 Alexander Godlewski committed Dec 17, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 amsn2/core/contactlist_manager.py
@@ -509,7 +509,8 @@ def fill(self, papyon_contact):
self.personal_message.append_text(papyon_contact.personal_message.decode('utf-8'))
self.current_media.reset()
if papyon_contact.current_media:
- self.current_media.append_text(papyon_contact.current_media.decode('utf-8'))
+ self.current_media.append_smiley("amsn2/themes/smileys/note.png", "Current Media")
+ self.current_media.append_text("{0} - {1}".format(papyon_contact.current_media[0].decode('utf-8'), papyon_contact.current_media[1].decode('utf-8')))
self.status.reset()
self.status.append_text(self._core.p2s[papyon_contact.presence])

0 comments on commit d783d88

Please sign in to comment.