[elghinn] Fix logic

This commit is contained in:
Jean-Marie Traissard 2008-04-22 18:43:50 +00:00
parent 465aab8200
commit ea3f446d8a
1 changed files with 2 additions and 2 deletions

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')
def user_send_tune(account, artist = '', title = '', source = '', track = 0,length = 0, items = None):
if (not gajim.config.get('publish_tune')) or \
(not gajim.connections[account].pep_supported):
if gajim.config.get('publish_tune') and \
gajim.connections[account].pep_supported:
return
item = xmpp.Node('tune', {'xmlns': xmpp.NS_TUNE})
if artist != '':