core (xmpp): set missing "from" attribute of received messages to the server domain
This commit is contained in:
parent
cb0eaacf28
commit
01e8ee664e
1 changed files with 2 additions and 0 deletions
|
|
@ -114,6 +114,8 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
||||||
self.host = host
|
self.host = host
|
||||||
|
|
||||||
def onMessage(self, message):
|
def onMessage(self, message):
|
||||||
|
if not message.hasAttribute('from'):
|
||||||
|
message['from'] = self.parent.jid.host
|
||||||
log.debug(_(u"got message from: %s") % message["from"])
|
log.debug(_(u"got message from: %s") % message["from"])
|
||||||
post_treat = defer.Deferred() # XXX: plugin can add their treatments to this deferred
|
post_treat = defer.Deferred() # XXX: plugin can add their treatments to this deferred
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue