diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-08 14:10:59 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-08 14:10:59 +0200 |
commit | 4edf690e26481e917be65efafb6a40a0e19061e2 (patch) | |
tree | 8699b627465dd25dd02d5633a8f1831792e77e19 | |
parent | 880f024c6814b70cd97bfeeb8530df73f233c241 (diff) | |
download | poezio-4edf690e26481e917be65efafb6a40a0e19061e2.tar.gz poezio-4edf690e26481e917be65efafb6a40a0e19061e2.tar.bz2 poezio-4edf690e26481e917be65efafb6a40a0e19061e2.tar.xz poezio-4edf690e26481e917be65efafb6a40a0e19061e2.zip |
Revert "Revert "tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG.""
This reverts commit e9a6ea7a59b0bf08c4f649ce125cb5dae12e1e63.
-rw-r--r-- | poezio/tabs/privatetab.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index ee4cd84c..6033e774 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -13,6 +13,7 @@ the ConversationTab (such as tab-completion on nicks from the room). import curses import logging from typing import Dict, Callable +from xml.etree import cElementTree as ET from slixmpp import JID @@ -152,6 +153,8 @@ class PrivateTab(OneToOneTab): ) msg['type'] = 'chat' msg['body'] = line + x = ET.Element('{http://jabber.org/protocol/muc#user}x') + msg.append(x) # trigger the event BEFORE looking for colors. # This lets a plugin insert \x19xxx} colors, that will # be converted in xhtml. |