jp (pubsub/uri): fixed URI generation

This commit is contained in:
Goffi 2017-05-19 12:33:54 +02:00
commit 4ea36624a2

View file

@ -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):