Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2011-05-21 20:26:00 +0400
committerDenis Fomin <fominde@gmail.com>2011-05-21 20:26:00 +0400
commitb9d294830721f98491aa9250174fe7ed20512755 (patch)
tree34852d04e06bb6d4b89e21ded6c42328f0a670f2
parent8896e33d65a12c41c1046678c157796353f50fe4 (diff)
add new attribut to MessageOutgoingEvent to allow logging configuration
-rw-r--r--src/common/connection.py2
-rw-r--r--src/common/connection_handlers_events.py3
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