Unverified Commit 0319ce50 authored by ge0rg's avatar ge0rg Committed by mathieui

MUC-PM: bare-JID messages can't be PMs

parent efc9489f
......@@ -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,
......
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