Skip to content
Snippets Groups Projects
Commit 4ebee785 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't require python2.5

parent 0e4df780
No related branches found
No related tags found
No related merge requests found
......@@ -375,8 +375,11 @@ def user_send_mood(account, mood, message = ''):
return
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
if mood != '':
item.addChild(mood, namespace = 'http://gajim.org/moods' \
if mood in GAJIM_MOODS else None)
if mood in GAJIM_MOODS:
ns = 'http://gajim.org/moods'
else:
ns = None
item.addChild(mood, namespace = ns)
if message != '':
i = item.addChild('text')
i.addData(message)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment