Fix the nickname of server-generated messages

This commit is contained in:
mathieui 2014-04-26 11:50:00 +02:00
parent 947cd13107
commit 4c4e2083a6

View file

@ -181,6 +181,8 @@ def on_normal_message(self, message):
remote_nick = message['nick']['nick']
if not remote_nick:
remote_nick = conv_jid.user
if not remote_nick:
remote_nick = conv_jid.full
own = False
# we wrote the message (happens with carbons)
elif message['from'].bare == self.xmpp.boundjid.bare: