Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/connection.py')
-rw-r--r--src/common/connection.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index 84c48f9ac..b3d16dca2 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -1132,9 +1132,16 @@ class Connection(ConnectionHandlers):
# XEP-0172: user_nickname
if user_nick:
- msg_iq.setTag('nick', namespace = common.xmpp.NS_NICK).setData(
+ msg_iq.setTag('nick', namespace=common.xmpp.NS_NICK).setData(
user_nick)
+ # XEP-0107: User Mood
+ if 'mood' in self.mood and not self.pep_supported:
+ mood_iq = msg_iq.setTag('mood', namespace=common.xmpp.NS_MOOD)
+ mood_iq.setTag(self.mood['mood'])
+ if 'text' in self.mood and self.mood['text']:
+ mood_iq.setTagData('text', self.mood['text'])
+
# TODO: We might want to write a function so we don't need to
# reproduce that ugly if somewhere else.
if resource: