Commit b9d29483 authored by Dicson's avatar Dicson

add new attribut to MessageOutgoingEvent to allow logging configuration

parent 8896e33d
......@@ -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_)
......
......@@ -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
\ No newline at end of file
return True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment