little cleanup / indentation fix
This commit is contained in:
parent
032518d4de
commit
011115ae80
|
@ -274,12 +274,13 @@ class Connection:
|
||||||
if xtag.getNamespace() == common.xmpp.NS_ENCRYPTED:
|
if xtag.getNamespace() == common.xmpp.NS_ENCRYPTED:
|
||||||
encTag = xtag
|
encTag = xtag
|
||||||
break
|
break
|
||||||
#invitations
|
#invitations
|
||||||
for xtag in xtags:
|
elif xtag.getNamespace() == common.xmpp.NS_MUC_USER and \
|
||||||
if xtag.getNamespace() == common.xmpp.NS_MUC_USER and xtag.getTag('invite'):
|
xtag.getTag('invite'):
|
||||||
invite = xtag
|
invite = xtag
|
||||||
|
|
||||||
# FIXME: Msn transport (CMSN1.2.1 and PyMSN0.10) do NOT RECOMMENDED invitation
|
# FIXME: Msn transport (CMSN1.2.1 and PyMSN0.10) do NOT RECOMMENDED
|
||||||
|
# invitation
|
||||||
# stanza (MUC JEP) remove in 2007, as we do not do NOT RECOMMENDED
|
# stanza (MUC JEP) remove in 2007, as we do not do NOT RECOMMENDED
|
||||||
elif xtag.getNamespace() == common.xmpp.NS_CONFERENCE:
|
elif xtag.getNamespace() == common.xmpp.NS_CONFERENCE:
|
||||||
room_jid = xtag.getAttr('jid')
|
room_jid = xtag.getAttr('jid')
|
||||||
|
|
|
@ -459,7 +459,7 @@ class Interface:
|
||||||
|
|
||||||
# array : (contact, msg, time, encrypted, msg_type, subject)
|
# array : (contact, msg, time, encrypted, msg_type, subject)
|
||||||
self.roster.on_message(jid, array[1], array[2], account, array[3],
|
self.roster.on_message(jid, array[1], array[2], account, array[3],
|
||||||
array[4], array[5])
|
msg_type, array[5])
|
||||||
if gajim.config.get_per('soundevents', 'first_message_received',
|
if gajim.config.get_per('soundevents', 'first_message_received',
|
||||||
'enabled') and first:
|
'enabled') and first:
|
||||||
helpers.play_sound('first_message_received')
|
helpers.play_sound('first_message_received')
|
||||||
|
|
|
@ -112,8 +112,8 @@ class TabbedChatWindow(chat.Chat):
|
||||||
self.mouse_over_in_last_5_secs = True
|
self.mouse_over_in_last_5_secs = True
|
||||||
self.mouse_over_in_last_30_secs = True
|
self.mouse_over_in_last_30_secs = True
|
||||||
|
|
||||||
def on_drag_data_received(self, widget, context, x, y, selection, target_type,
|
def on_drag_data_received(self, widget, context, x, y, selection,
|
||||||
timestamp, contact):
|
target_type, timestamp, contact):
|
||||||
if target_type == self.TARGET_TYPE_URI_LIST:
|
if target_type == self.TARGET_TYPE_URI_LIST:
|
||||||
uri = selection.data.strip()
|
uri = selection.data.strip()
|
||||||
uri_splitted = uri.split() # we may have more than one file dropped
|
uri_splitted = uri.split() # we may have more than one file dropped
|
||||||
|
@ -418,7 +418,7 @@ timestamp, contact):
|
||||||
|
|
||||||
self.possible_paused_timeout_id[contact.jid] =\
|
self.possible_paused_timeout_id[contact.jid] =\
|
||||||
gobject.timeout_add(5000, self.check_for_possible_paused_chatstate,
|
gobject.timeout_add(5000, self.check_for_possible_paused_chatstate,
|
||||||
contact.jid)
|
contact.jid)
|
||||||
self.possible_inactive_timeout_id[contact.jid] =\
|
self.possible_inactive_timeout_id[contact.jid] =\
|
||||||
gobject.timeout_add(30000, self.check_for_possible_inactive_chatstate,
|
gobject.timeout_add(30000, self.check_for_possible_inactive_chatstate,
|
||||||
contact.jid)
|
contact.jid)
|
||||||
|
|
Loading…
Reference in New Issue