From ea3f446d8a66c923df158e8825ded817d1e44de7 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 22 Apr 2008 18:43:50 +0000 Subject: [PATCH] [elghinn] Fix logic --- src/common/pep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/pep.py b/src/common/pep.py index bf4cb15e6..3617a2bc3 100644 --- a/src/common/pep.py +++ b/src/common/pep.py @@ -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 != '':