diff --git a/src/chat_control.py b/src/chat_control.py index b97117e9e..47725a8a1 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1521,14 +1521,16 @@ class ChatControl(ChatControlBase): label_text = '%s%s %s' \ % (font_attrs, name, font_attrs_small, acct_info, chatstate) - label_tooltip = '%s%s %s' % (name, ' ' + acct_info \ - if acct_info else '', chatstate) + if acct_info: + acct_info = ' ' + acct_info + label_tooltip = '%s%s %s' % (name, acct_info, chatstate) else: # weight="heavy" size="x-large" label_text = '%s%s' % \ (font_attrs, name, font_attrs_small, acct_info) - label_tooltip = '%s%s' % (name, ' ' + acct_info \ - if acct_info else '') + if acct_info: + acct_info = ' ' + acct_info + label_tooltip = '%s%s' % (name, acct_info) if status_escaped: if gajim.HAVE_PYSEXY: