[elghinn] Fix logic

This commit is contained in:
Jean-Marie Traissard 2008-04-22 18:43:50 +00:00
parent 465aab8200
commit ea3f446d8a

View file

@ -195,8 +195,8 @@ def user_send_activity(account, activity, subactivity = '', message = ''):
gajim.connections[account].send_pb_publish('', xmpp.NS_ACTIVITY, item, '0') gajim.connections[account].send_pb_publish('', xmpp.NS_ACTIVITY, item, '0')
def user_send_tune(account, artist = '', title = '', source = '', track = 0,length = 0, items = None): def user_send_tune(account, artist = '', title = '', source = '', track = 0,length = 0, items = None):
if (not gajim.config.get('publish_tune')) or \ if gajim.config.get('publish_tune') and \
(not gajim.connections[account].pep_supported): gajim.connections[account].pep_supported:
return return
item = xmpp.Node('tune', {'xmlns': xmpp.NS_TUNE}) item = xmpp.Node('tune', {'xmlns': xmpp.NS_TUNE})
if artist != '': if artist != '':