fix logging sent single messages. Fixes #7207

This commit is contained in:
Yann Leboulanger 2013-10-28 12:02:05 +01:00
parent cab5228220
commit bbca2284ac
2 changed files with 3 additions and 1 deletions

View File

@ -2042,6 +2042,8 @@ class Connection(CommonConnection, ConnectionHandlers):
return return
if isinstance(jid, list): if isinstance(jid, list):
for j in jid: for j in jid:
if session is None:
session = self.get_or_create_session(j, '')
self.log_message(j, msg, forward_from, session, self.log_message(j, msg, forward_from, session,
original_message, subject, type_, xhtml) original_message, subject, type_, xhtml)
else: else:

View File

@ -2468,7 +2468,7 @@ class MessageOutgoingEvent(nec.NetworkOutgoingEvent):
self.session = None self.session = None
self.forward_from = None self.forward_from = None
self.form_node = None self.form_node = None
self.original_message = '' self.original_message = None
self.delayed = None self.delayed = None
self.callback = None self.callback = None
self.callback_args = [] self.callback_args = []