Changeset 9509

Show
Ignore:
Timestamp:
04/21/08 02:00:52 (7 months ago)
Author:
jim++
Message:

Don't log room description at each gc connection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r9508 r9509  
    16641664                                        statusCode)) 
    16651665                                if self.name not in no_log_for and jid not in no_log_for and not \ 
    1666                                 int(float(mktime(tim))) <= self.last_history_line[jid] and msgtxt: 
     1666                                int(float(mktime(tim))) <= self.last_history_line[jid] and msgtxt \ 
     1667                                and frm.find('/') >= 0: 
     1668                                        # if frm.find('/') < 0, it means message comes from room itself 
     1669                                        # usually it hold description and can be send at each connection 
     1670                                        # so don't store it in logs 
    16671671                                        try: 
    16681672                                                gajim.logger.write('gc_msg', frm, msgtxt, tim = tim)