Fix a traceback after a received MUC message

"highlight referenced before assignment"
This commit is contained in:
mathieui 2020-05-29 18:31:21 +02:00
parent 502d79e763
commit 333d260d50

View file

@ -789,6 +789,7 @@ class HandlerCore:
if not replaced:
# Messages coming from MUC barejid (Server maintenance, IRC mode
# changes from biboumi, etc.) are displayed as info messages.
highlight = False
if message['from'].resource:
highlight = tab.message_is_highlight(body, nick_from, delayed)
ui_msg = PMessage(