remove useless print
This commit is contained in:
parent
d65cba8493
commit
d2d92e7de3
|
@ -74,7 +74,6 @@ def user_activity(items, name, jid):
|
||||||
contact.activity['text'] = ch.getData()
|
contact.activity['text'] = ch.getData()
|
||||||
|
|
||||||
def user_send_mood(account, mood, message = ''):
|
def user_send_mood(account, mood, message = ''):
|
||||||
print "Sending %s: %s" % (mood, message)
|
|
||||||
if gajim.config.get('publish_mood') == False:
|
if gajim.config.get('publish_mood') == False:
|
||||||
return
|
return
|
||||||
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
|
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
|
||||||
|
@ -101,11 +100,9 @@ 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):
|
||||||
print "Tune to be created"
|
|
||||||
if (gajim.config.get('publish_tune') == False) or \
|
if (gajim.config.get('publish_tune') == False) or \
|
||||||
(gajim.connections[account].pep_supported == False):
|
(gajim.connections[account].pep_supported == False):
|
||||||
return
|
return
|
||||||
print "publish_tune == True and pep_supported"
|
|
||||||
item = xmpp.Node('tune', {'xmlns': xmpp.NS_TUNE})
|
item = xmpp.Node('tune', {'xmlns': xmpp.NS_TUNE})
|
||||||
if artist != '':
|
if artist != '':
|
||||||
i = item.addChild('artist')
|
i = item.addChild('artist')
|
||||||
|
@ -126,4 +123,3 @@ def user_send_tune(account, artist = '', title = '', source = '', track = 0,leng
|
||||||
item.addChild(payload=items)
|
item.addChild(payload=items)
|
||||||
|
|
||||||
gajim.connections[account].send_pb_publish('', xmpp.NS_TUNE, item, '0')
|
gajim.connections[account].send_pb_publish('', xmpp.NS_TUNE, item, '0')
|
||||||
print "Tune published"
|
|
||||||
|
|
Loading…
Reference in New Issue