fix: Correct JID comparison in MUC plugin for bare JID matching
This commit is contained in:
parent
7979e3b603
commit
d9b0b6dfe6
@ -658,7 +658,7 @@ class XEP_0045(BasePlugin):
|
|||||||
|
|
||||||
if entry['jid'] == jid.full:
|
if entry['jid'] == jid.full:
|
||||||
return True
|
return True
|
||||||
elif JID(entry['jid']) == jid.bare:
|
elif JID(entry['jid']).bare == jid.bare:
|
||||||
bare_match = True
|
bare_match = True
|
||||||
|
|
||||||
if bare_match:
|
if bare_match:
|
||||||
@ -682,7 +682,7 @@ class XEP_0045(BasePlugin):
|
|||||||
|
|
||||||
if entry['jid'] == jid.full:
|
if entry['jid'] == jid.full:
|
||||||
return nick
|
return nick
|
||||||
elif JID(entry['jid']) == jid.bare:
|
elif JID(entry['jid']).bare == jid.bare:
|
||||||
bare_match = nick
|
bare_match = nick
|
||||||
|
|
||||||
if bare_match:
|
if bare_match:
|
||||||
|
Loading…
Reference in New Issue
Block a user