diff options
Diffstat (limited to 'poezio/tabs/privatetab.py')
-rw-r--r-- | poezio/tabs/privatetab.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index e4937894..f29e302c 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -13,7 +13,6 @@ 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 @@ -31,8 +30,6 @@ from poezio.ui.types import BaseMessage, Message, InfoMessage log = logging.getLogger(__name__) -NS_MUC_USER = 'http://jabber.org/protocol/muc#user' - class PrivateTab(OneToOneTab): """ @@ -156,8 +153,7 @@ class PrivateTab(OneToOneTab): ) msg['type'] = 'chat' msg['body'] = line - x = ET.Element('{%s}x' % NS_MUC_USER) - msg.append(x) + msg.enable('muc') # trigger the event BEFORE looking for colors. # This lets a plugin insert \x19xxx} colors, that will # be converted in xhtml. |