From a5fc3b774257f86201d55c9493e6589e23a66bec Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 20 Apr 2011 22:57:26 +0200 Subject: [PATCH] don't send the converted to one line message, just save it converted. --- src/dialogs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 78a703dd4..623445b34 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1106,10 +1106,10 @@ class AddNewContactWindow: start_iter = message_buffer.get_start_iter() end_iter = message_buffer.get_end_iter() message = message_buffer.get_text(start_iter, end_iter).decode('utf-8') - message = helpers.to_one_line(message) if self.save_message_checkbutton.get_active(): + msg = helpers.to_one_line(message) gajim.config.set_per('accounts', self.account, - 'subscription_request_msg', message) + 'subscription_request_msg', msg) else: message= '' group = self.group_comboboxentry.child.get_text().decode('utf-8')