Message about file you're playing was redundant

This commit is contained in:
Uriziel 2012-12-14 22:36:44 +01:00
parent 10a4d3f953
commit d4ec7dac6e

View File

@ -350,7 +350,7 @@ class SyncplayUserlist(object):
if (room and not file_):
message = "<{}> has joined the room: '{}'".format(username, room)
self.ui.showMessage(message)
elif (room and file_):
elif (room and file_ and username != self.currentUser.username):
duration = self.ui.formatTime(file_['duration'])
message = "<{}> is playing '{}' ({})".format(username, file_['name'], duration)
if(self.currentUser.room <> room or self.currentUser.username == username):