diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-08 15:11:21 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-08 15:11:21 +0200 |
commit | 773880c79911ab3aafdb11ee8d896e958a2281b0 (patch) | |
tree | 900812327cb6c648bea2b7f0d9a3edc6baf6b83b | |
parent | e2dc69f9e1da9bb3b5924f606791a52a260e76fd (diff) | |
download | poezio-773880c79911ab3aafdb11ee8d896e958a2281b0.tar.gz poezio-773880c79911ab3aafdb11ee8d896e958a2281b0.tar.bz2 poezio-773880c79911ab3aafdb11ee8d896e958a2281b0.tar.xz poezio-773880c79911ab3aafdb11ee8d896e958a2281b0.zip |
PrivateTab: extract NS contant
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/tabs/privatetab.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index 6033e774..7206240f 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -30,6 +30,8 @@ from poezio.decorators import command_args_parser log = logging.getLogger(__name__) +NS_MUC_USER = 'http://jabber.org/protocol/muc#user' + class PrivateTab(OneToOneTab): """ @@ -153,7 +155,7 @@ class PrivateTab(OneToOneTab): ) msg['type'] = 'chat' msg['body'] = line - x = ET.Element('{http://jabber.org/protocol/muc#user}x') + x = ET.Element('{%s}x' % NS_MUC_USER) msg.append(x) # trigger the event BEFORE looking for colors. # This lets a plugin insert \x19xxx} colors, that will |