fix track information in status message when there is no status message. fixes #3563

This commit is contained in:
Yann Leboulanger 2007-11-19 09:41:13 +00:00
parent 39a03aa369
commit 2bdcc33005
1 changed files with 1 additions and 1 deletions

View File

@ -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())