Verified Commit 9007b0fc authored by Maxime Buquet's avatar Maxime Buquet
Browse files

Prevent Traceback when receiving MUC-PM carbons under some conditions

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 6b211032
......@@ -797,7 +797,9 @@ class HandlerCore:
if body and not ignore:
tab = self.core.open_private_window(room_from, with_nick,
sender_nick = (tab.own_nick
# Tab can still be None here, when receiving carbons of a MUC-PM for
# example
sender_nick = (tab and tab.own_nick
or self.core.own_nick) if sent else with_nick
if ignore and not sent:'ignored_private', message, tab)
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