don't require python2.5
This commit is contained in:
parent
0e4df7800d
commit
4ebee785ff
|
@ -375,8 +375,11 @@ def user_send_mood(account, mood, message = ''):
|
||||||
return
|
return
|
||||||
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
|
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
|
||||||
if mood != '':
|
if mood != '':
|
||||||
item.addChild(mood, namespace = 'http://gajim.org/moods' \
|
if mood in GAJIM_MOODS:
|
||||||
if mood in GAJIM_MOODS else None)
|
ns = 'http://gajim.org/moods'
|
||||||
|
else:
|
||||||
|
ns = None
|
||||||
|
item.addChild(mood, namespace = ns)
|
||||||
if message != '':
|
if message != '':
|
||||||
i = item.addChild('text')
|
i = item.addChild('text')
|
||||||
i.addData(message)
|
i.addData(message)
|
||||||
|
|
Loading…
Reference in New Issue