- Timestamp:
- 08/06/07 13:45:29 (16 months ago)
- Files:
-
- 1 modified
-
trunk/src/chat_control.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r8445 r8454 555 555 556 556 def send_message(self, message, keyID = '', type = 'chat', chatstate = None, 557 msg_id = None, composing_xep = None, resource = None): 557 msg_id = None, composing_xep = None, resource = None, 558 process_command = True): 558 559 '''Send the given message to the active tab. Doesn't return None if error 559 560 ''' … … 561 562 return 1 562 563 563 564 if not self._process_command(message): 564 if not process_command or not self._process_command(message): 565 565 ret = MessageControl.send_message(self, message, keyID, type = type, 566 566 chatstate = chatstate, msg_id = msg_id, … … 1285 1285 return 1286 1286 1287 # Do we need to process command for the message ? 1288 process_command = True 1287 1289 if message.startswith('/say'): 1288 1290 message = message[5:] 1291 process_command = False 1289 1292 1290 1293 # refresh timers … … 1330 1333 1331 1334 if not ChatControlBase.send_message(self, message, keyID, type = 'chat', 1332 chatstate = chatstate_to_send, composing_xep = composing_xep): 1335 chatstate = chatstate_to_send, composing_xep = composing_xep, 1336 process_command = process_command): 1333 1337 self.print_conversation(message, self.contact.jid, 1334 1338 encrypted = encrypted)
