add new attribut to MessageOutgoingEvent to allow logging configuration

This commit is contained in:
Denis Fomin 2011-05-21 20:26:00 +04:00
parent 8896e33d65
commit b9d2948307
2 changed files with 4 additions and 1 deletions

View File

@ -1781,6 +1781,8 @@ class Connection(CommonConnection, ConnectionHandlers):
if obj.callback:
obj.callback(msg_id, *obj.callback_args)
if not obj.is_loggable:
return
self.log_message(jid, msg, forward_from, session, original_message,
subject, type_)

View File

@ -2067,6 +2067,7 @@ class MessageOutgoingEvent(nec.NetworkIncomingEvent):
self.callback = None
self.callback_args = []
self.now = False
self.is_loggable = True
def generate(self):
return True
return True