do not log gc invitation. Fixes #2525
This commit is contained in:
parent
0f7e244623
commit
6b0bf2b2a0
|
@ -1416,9 +1416,6 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco)
|
||||||
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject,
|
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject,
|
||||||
chatstate, msg_id, composing_jep, user_nick, msghtml))
|
chatstate, msg_id, composing_jep, user_nick, msghtml))
|
||||||
else: # it's single message
|
else: # it's single message
|
||||||
if self.name not in no_log_for and jid not in no_log_for and msgtxt:
|
|
||||||
gajim.logger.write('single_msg_recv', frm, msgtxt, tim = tim,
|
|
||||||
subject = subject)
|
|
||||||
if invite is not None:
|
if invite is not None:
|
||||||
item = invite.getTag('invite')
|
item = invite.getTag('invite')
|
||||||
jid_from = item.getAttr('from')
|
jid_from = item.getAttr('from')
|
||||||
|
@ -1426,7 +1423,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco)
|
||||||
item = invite.getTag('password')
|
item = invite.getTag('password')
|
||||||
password = invite.getTagData('password')
|
password = invite.getTagData('password')
|
||||||
self.dispatch('GC_INVITATION',(frm, jid_from, reason, password))
|
self.dispatch('GC_INVITATION',(frm, jid_from, reason, password))
|
||||||
else:
|
return
|
||||||
|
if self.name not in no_log_for and jid not in no_log_for and msgtxt:
|
||||||
|
gajim.logger.write('single_msg_recv', frm, msgtxt, tim = tim,
|
||||||
|
subject = subject)
|
||||||
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, 'normal',
|
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, 'normal',
|
||||||
subject, chatstate, msg_id, composing_jep, user_nick, msghtml))
|
subject, chatstate, msg_id, composing_jep, user_nick, msghtml))
|
||||||
# END messageCB
|
# END messageCB
|
||||||
|
|
Loading…
Reference in New Issue