changeset 776b8b6e190d in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=776b8b6e190d
description: add new attribut to MessageOutgoingEvent to allow logging
configuration
diffstat:
src/common/connection.py | 2 ++
src/common/connection_handlers_events.py | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 8d65c137c447 -r 776b8b6e190d src/common/connection.py
--- a/src/common/connection.py Fri May 20 22:36:10 2011 +0200
+++ b/src/common/connection.py Sat May 21 20:26:00 2011 +0400
@@ -1781,6 +1781,8 @@
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 -r 8d65c137c447 -r 776b8b6e190d src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py Fri May 20 22:36:10 2011 +0200
+++ b/src/common/connection_handlers_events.py Sat May 21 20:26:00 2011 +0400
@@ -2067,6 +2067,7 @@
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
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits