Commit 02eaaa7d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Set from to own jid if attr is not present

parent ba07eccc
...@@ -519,6 +519,9 @@ class XMPPDispatcher(PlugIn): ...@@ -519,6 +519,9 @@ class XMPPDispatcher(PlugIn):
log.warning('Message addressed to someone else: %s', stanza) log.warning('Message addressed to someone else: %s', stanza)
return return
if stanza.getFrom() is None:
stanza.setFrom(own_jid.getBare())
# Unwrap carbon # Unwrap carbon
try: try:
stanza, properties.carbon_type = unwrap_carbon(stanza, own_jid) stanza, properties.carbon_type = unwrap_carbon(stanza, own_jid)
......
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