From 2bdcc330051e53fa81a912d756d057a8c9b366ad Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 19 Nov 2007 09:41:13 +0000 Subject: [PATCH] fix track information in status message when there is no status message. fixes #3563 --- src/roster_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index de7f7307c..7a3458dda 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3778,7 +3778,7 @@ class RosterWindow: # Keep the last status message, replacing only the current song part current_status_message = gajim.connections[account].status song_offset = current_status_message.find('♪') - if song_offset > 0: + if song_offset >= 0: current_status_message = current_status_message[0:song_offset] status_message = current_status_message.strip() + '\n' + status_message self.send_status(account, current_show, status_message.strip())