From 0319ce5079bffec5cad9637ee396d489194d63e7 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 3 Apr 2018 22:53:29 +0200 Subject: MUC-PM: bare-JID messages can't be PMs --- poezio/core/handlers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'poezio') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 8f8ff8bc..268c9733 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -137,8 +137,9 @@ class HandlerCore: self.on_normal_message(sent) sent = message['carbon_sent'] - if (sent['to'].bare not in roster - or roster[sent['to'].bare].subscription == 'none'): + # todo: implement proper MUC detection logic + if (sent['to'].resource and (sent['to'].bare not in roster + or roster[sent['to'].bare].subscription == 'none')): fixes.has_identity( self.core.xmpp, sent['to'].server, -- cgit v1.2.3