diff options
author | Denis Fomin <fominde@gmail.com> | 2011-05-21 20:26:00 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2011-05-21 20:26:00 +0400 |
commit | b9d294830721f98491aa9250174fe7ed20512755 (patch) | |
tree | 34852d04e06bb6d4b89e21ded6c42328f0a670f2 | |
parent | 8896e33d65a12c41c1046678c157796353f50fe4 (diff) |
add new attribut to MessageOutgoingEvent to allow logging configuration
-rw-r--r-- | src/common/connection.py | 2 | ||||
-rw-r--r-- | src/common/connection_handlers_events.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index 18824b3aa..ffe694dd0 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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_) diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index df850a284..27541b08c 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -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 |