Skip to content
Snippets Groups Projects
Commit 8f9643b3 authored by jimpp's avatar jimpp
Browse files

Update gajim-remote new command name, delete unused local var

parent 4d9e58a5
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ def __init__(self):
def print_result(self, res):
''' Print retrieved result to the output '''
if res is not None:
if self.command in ('open_chat', 'send_message', 'send_single_message', 'start_chat'):
if self.command in ('open_chat', 'send_chat_message', 'send_single_message', 'start_chat'):
if self.command in ('send_message', 'send_single_message'):
self.argv_len -= 2
......
......@@ -195,10 +195,9 @@ def _send_message(self, jid, message, keyID, account, type = 'chat', subject = N
keyID = ''
connected_account, contact = self.get_account_and_contact(account, jid)
if connected_account:
connection = gajim.connections[connected_account]
res = connection.send_message(jid, message, keyID, type, subject)
connection.send_message(jid, message, keyID, type, subject)
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment