From 8f9643b3bc5ad1df4322cbed954cacb399c58abc Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Wed, 22 Nov 2006 17:19:50 +0000 Subject: [PATCH] Update gajim-remote new command name, delete unused local var --- src/gajim-remote.py | 2 +- src/remote_control.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gajim-remote.py b/src/gajim-remote.py index 06244c782..6673ad9eb 100755 --- a/src/gajim-remote.py +++ b/src/gajim-remote.py @@ -259,7 +259,7 @@ class GajimRemote: 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 diff --git a/src/remote_control.py b/src/remote_control.py index cf754810e..7f2959568 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -195,10 +195,9 @@ class SignalObject(dbus.service.Object): 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