From 4ea36624a223b974a074ee8ffb2b7e17f3cdcb18 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 19 May 2017 12:33:54 +0200 Subject: [PATCH] jp (pubsub/uri): fixed URI generation --- frontends/src/jp/cmd_pubsub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/src/jp/cmd_pubsub.py b/frontends/src/jp/cmd_pubsub.py index 31d5e285..3d9ccbd2 100644 --- a/frontends/src/jp/cmd_pubsub.py +++ b/frontends/src/jp/cmd_pubsub.py @@ -332,7 +332,7 @@ class Uri(base.CommandBase): self.parser.add_argument("-p", "--profile", type=base.unicode_decoder, default=C.PROF_KEY_DEFAULT, help=_(u"profile (used when no server is specified)")) def display_uri(self, jid_): - uri_args = {u'type': 'pubsub'} + uri_args = {} if not self.args.service: self.args.service = jid.JID(jid_).bare @@ -342,7 +342,7 @@ class Uri(base.CommandBase): key = 'path' if value: uri_args[key] = value - self.disp(uri.buildXMPPUri(**uri_args)) + self.disp(uri.buildXMPPUri(u'pubsub', **uri_args)) self.host.quit() def start(self):