Remove the domain from the buddy name before message is sent

This commit is contained in:
moyamo 2015-06-21 16:16:26 +02:00
parent 0c17a497ee
commit 6b1b714d3c

View file

@ -494,7 +494,7 @@ class SpectrumLayer(YowInterfaceLayer):
@ProtocolEntityCallback("message")
def onMessageReceived(self, messageEntity):
buddy = messageEntity.getFrom()
buddy = messageEntity.getFrom().split('@')[0]
messageContent = utils.softToUni(messageEntity.getBody())
timestamp = messageEntity.getTimestamp()