fix track information in status message when there is no status message. fixes #3563
This commit is contained in:
parent
39a03aa369
commit
2bdcc33005
|
@ -3778,7 +3778,7 @@ class RosterWindow:
|
||||||
# Keep the last status message, replacing only the current song part
|
# Keep the last status message, replacing only the current song part
|
||||||
current_status_message = gajim.connections[account].status
|
current_status_message = gajim.connections[account].status
|
||||||
song_offset = current_status_message.find('♪')
|
song_offset = current_status_message.find('♪')
|
||||||
if song_offset > 0:
|
if song_offset >= 0:
|
||||||
current_status_message = current_status_message[0:song_offset]
|
current_status_message = current_status_message[0:song_offset]
|
||||||
status_message = current_status_message.strip() + '\n' + status_message
|
status_message = current_status_message.strip() + '\n' + status_message
|
||||||
self.send_status(account, current_show, status_message.strip())
|
self.send_status(account, current_show, status_message.strip())
|
||||||
|
|
Loading…
Reference in New Issue