diff options
author | mathieui <mathieui@mathieui.net> | 2016-09-29 01:01:34 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-09-29 01:01:34 +0200 |
commit | b035d9f2cfe6182cd44369dd15efd4bc986b8839 (patch) | |
tree | 8c1a3b5bada1a083d198e3188fe395ca4c783808 | |
parent | 91ced4d39113cdfcd6693ee4b15660c6c3d1a678 (diff) | |
download | poezio-b035d9f2cfe6182cd44369dd15efd4bc986b8839.tar.gz poezio-b035d9f2cfe6182cd44369dd15efd4bc986b8839.tar.bz2 poezio-b035d9f2cfe6182cd44369dd15efd4bc986b8839.tar.xz poezio-b035d9f2cfe6182cd44369dd15efd4bc986b8839.zip |
Make enable_xhtml_im tab-specific
-rw-r--r-- | poezio/core/handlers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index cf1c71f5..3b7d0b46 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -252,7 +252,7 @@ class HandlerCore: elif message['type'] == 'headline' and message['body']: return self.core.information('%s says: %s' % (message['from'], message['body']), 'Headline') - use_xhtml = config.get('enable_xhtml_im') + use_xhtml = config.get_by_tabname('enable_xhtml_im', message['from'].bare) tmp_dir = config.get('tmp_image_dir') or path.join(CACHE_DIR, 'images') extract_images = config.get('extract_inline_images') body = xhtml.get_body_from_message_stanza(message, use_xhtml=use_xhtml, @@ -526,7 +526,7 @@ class HandlerCore: return self.core.events.trigger('muc_msg', message, tab) - use_xhtml = config.get('enable_xhtml_im') + use_xhtml = config.get_by_tabname('enable_xhtml_im', room_from) tmp_dir = config.get('tmp_image_dir') or path.join(CACHE_DIR, 'images') extract_images = config.get('extract_inline_images') body = xhtml.get_body_from_message_stanza(message, use_xhtml=use_xhtml, @@ -590,7 +590,7 @@ class HandlerCore: return room_from = jid.bare - use_xhtml = config.get('enable_xhtml_im') + use_xhtml = config.get_by_tabname('enable_xhtml_im', jid.bare) tmp_dir = config.get('tmp_image_dir') or path.join(CACHE_DIR, 'images') extract_images = config.get('extract_inline_images') body = xhtml.get_body_from_message_stanza(message, use_xhtml=use_xhtml, |