Commit 333d260d authored by mathieui's avatar mathieui

Fix a traceback after a received MUC message

"highlight referenced before assignment"
parent 502d79e7
...@@ -789,6 +789,7 @@ class HandlerCore: ...@@ -789,6 +789,7 @@ class HandlerCore:
if not replaced: if not replaced:
# Messages coming from MUC barejid (Server maintenance, IRC mode # Messages coming from MUC barejid (Server maintenance, IRC mode
# changes from biboumi, etc.) are displayed as info messages. # changes from biboumi, etc.) are displayed as info messages.
highlight = False
if message['from'].resource: if message['from'].resource:
highlight = tab.message_is_highlight(body, nick_from, delayed) highlight = tab.message_is_highlight(body, nick_from, delayed)
ui_msg = PMessage( ui_msg = PMessage(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment