summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-26 11:50:00 +0200
committermathieui <mathieui@mathieui.net>2014-04-26 11:50:00 +0200
commit4c4e2083a6f4cab94b5cf63620e7a1be66c82817 (patch)
tree66e8d3eec9a96886ba6668299e9c63851668dbef
parent947cd131073e2f684163168546e6dee5938a4c63 (diff)
downloadpoezio-4c4e2083a6f4cab94b5cf63620e7a1be66c82817.tar.gz
poezio-4c4e2083a6f4cab94b5cf63620e7a1be66c82817.tar.bz2
poezio-4c4e2083a6f4cab94b5cf63620e7a1be66c82817.tar.xz
poezio-4c4e2083a6f4cab94b5cf63620e7a1be66c82817.zip
Fix the nickname of server-generated messages
-rw-r--r--src/core/handlers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index aad0cb37..7ce14c65 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -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: