some coding standards
This commit is contained in:
parent
bc4761b0b0
commit
008c98da44
1 changed files with 3 additions and 5 deletions
|
@ -1781,8 +1781,7 @@ class ChatControl(ChatControlBase):
|
||||||
else:
|
else:
|
||||||
self.print_conversation(_('No help info for /%s') % command, 'info')
|
self.print_conversation(_('No help info for /%s') % command, 'info')
|
||||||
|
|
||||||
def send_message(self, message, keyID = '', chatstate = None,
|
def send_message(self, message, keyID='', chatstate=None, xhtml=None):
|
||||||
xhtml = None):
|
|
||||||
'''Send a message to contact'''
|
'''Send a message to contact'''
|
||||||
if message in ('', None, '\n') or self._process_command(message):
|
if message in ('', None, '\n') or self._process_command(message):
|
||||||
return None
|
return None
|
||||||
|
@ -1846,9 +1845,8 @@ class ChatControl(ChatControlBase):
|
||||||
else:
|
else:
|
||||||
xep0184_id = None
|
xep0184_id = None
|
||||||
|
|
||||||
self.print_conversation(message, self.contact.jid,
|
self.print_conversation(message, self.contact.jid, encrypted=encrypted,
|
||||||
encrypted = encrypted, xep0184_id = xep0184_id,
|
xep0184_id=xep0184_id, xhtml=xhtml)
|
||||||
xhtml = xhtml)
|
|
||||||
|
|
||||||
ChatControlBase.send_message(self, message, keyID, type_='chat',
|
ChatControlBase.send_message(self, message, keyID, type_='chat',
|
||||||
chatstate=chatstate_to_send, composing_xep=composing_xep,
|
chatstate=chatstate_to_send, composing_xep=composing_xep,
|
||||||
|
|
Loading…
Add table
Reference in a new issue