summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/handlers.py5
1 files changed, 3 insertions, 2 deletions
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,