Changeset 9774

Show
Ignore:
Timestamp:
06/08/08 18:54:59 (6 months ago)
Author:
js
Message:

Don't return 1 on error, but None. 1 could also be a message ID.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chat_control.py

    r9772 r9774  
    620620                ''' 
    621621                if not message or message == '\n': 
    622                         return 1 
     622                        return None 
    623623 
    624624                ret = None 
     
    14541454                '''Send a message to contact''' 
    14551455                if message in ('', None, '\n') or self._process_command(message): 
    1456                         return 
     1456                        return None 
    14571457 
    14581458                # Do we need to process command for the message ? 
     
    15051505                                self._schedule_activity_timers() 
    15061506 
    1507                 ChatControlBase.send_message(self, message, keyID, 
    1508                         type = 'chat', chatstate = chatstate_to_send, 
    1509                         composing_xep = composing_xep, 
    1510                         process_command = process_command) 
    1511                 self.print_conversation(message, self.contact.jid, 
    1512                         encrypted = encrypted) 
     1507                if ChatControlBase.send_message(self, message, keyID, 
     1508                type = 'chat', chatstate = chatstate_to_send, 
     1509                composing_xep = composing_xep, 
     1510                process_command = process_command): 
     1511                        self.print_conversation(message, self.contact.jid, 
     1512                                encrypted = encrypted) 
    15131513 
    15141514        def check_for_possible_paused_chatstate(self, arg):