fix number of argument in MSG event in zeroconf part

This commit is contained in:
Yann Leboulanger 2007-10-07 20:46:03 +00:00
parent 1951dd4f3d
commit 53d6eb93dd
1 changed files with 5 additions and 2 deletions

View File

@ -656,6 +656,7 @@ class ConnectionHandlersZeroconf(ConnectionVcard, ConnectionBytestream):
chatstate = None chatstate = None
encTag = msg.getTag('x', namespace = common.xmpp.NS_ENCRYPTED) encTag = msg.getTag('x', namespace = common.xmpp.NS_ENCRYPTED)
decmsg = '' decmsg = ''
form_node = msg.getTag('x', namespace = common.xmpp.NS_DATA)
# invitations # invitations
invite = None invite = None
if not encTag: if not encTag:
@ -716,14 +717,16 @@ class ConnectionHandlersZeroconf(ConnectionVcard, ConnectionBytestream):
msg_id = gajim.logger.write('chat_msg_recv', frm, msgtxt, tim = tim, msg_id = gajim.logger.write('chat_msg_recv', frm, msgtxt, tim = tim,
subject = subject) subject = subject)
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject, self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject,
chatstate, msg_id, composing_xep, user_nick, msghtml, thread)) chatstate, msg_id, composing_xep, user_nick, msghtml, thread,
form_node))
elif mtype == 'normal': # it's single message elif mtype == 'normal': # it's single message
if self.name not in no_log_for and jid not in no_log_for and msgtxt: 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, gajim.logger.write('single_msg_recv', frm, msgtxt, tim = tim,
subject = subject) subject = subject)
if invite: if invite:
self.dispatch('MSG', (frm, msgtxt, tim, encrypted, 'normal', self.dispatch('MSG', (frm, msgtxt, tim, encrypted, 'normal',
subject, chatstate, msg_id, composing_xep, user_nick)) subject, chatstate, msg_id, composing_xep, user_nick, msghtml,
thread, form_node))
# END messageCB # END messageCB
def parse_data_form(self, node): def parse_data_form(self, node):