coding standards
This commit is contained in:
parent
4bef0e5cdf
commit
961e4426ff
|
@ -459,8 +459,7 @@ def user_nickname(items, name, jid):
|
||||||
contact.contact_name = nick
|
contact.contact_name = nick
|
||||||
gajim.interface.roster.draw_contact(user, name)
|
gajim.interface.roster.draw_contact(user, name)
|
||||||
|
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(user,
|
ctrl = gajim.interface.msg_win_mgr.get_control(user, name)
|
||||||
name)
|
|
||||||
if ctrl:
|
if ctrl:
|
||||||
ctrl.update_ui()
|
ctrl.update_ui()
|
||||||
win = ctrl.parent_win
|
win = ctrl.parent_win
|
||||||
|
@ -493,11 +492,10 @@ def user_send_activity(account, activity, subactivity = '', message = ''):
|
||||||
i = item.addChild('text')
|
i = item.addChild('text')
|
||||||
i.addData(message)
|
i.addData(message)
|
||||||
|
|
||||||
gajim.connections[account].send_pb_publish('', xmpp.NS_ACTIVITY,
|
gajim.connections[account].send_pb_publish('', xmpp.NS_ACTIVITY, item, '0')
|
||||||
item, '0')
|
|
||||||
|
|
||||||
def user_send_tune(account, artist = '', title = '', source = '', track = 0,
|
def user_send_tune(account, artist='', title='', source='', track=0, length=0,
|
||||||
length = 0, items = None):
|
items=None):
|
||||||
if not (gajim.config.get_per('accounts', account, 'publish_tune') and \
|
if not (gajim.config.get_per('accounts', account, 'publish_tune') and \
|
||||||
gajim.connections[account].pep_supported):
|
gajim.connections[account].pep_supported):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue