diff frontends/src/jp/cmd_pubsub.py @ 2239:17502e74c046

jp (pubsub/uri): fixed URI generation
author Goffi <goffi@goffi.org>
date Fri, 19 May 2017 12:33:54 +0200
parents 4db836386641
children 27f469d40a83
line wrap: on
line diff
--- a/frontends/src/jp/cmd_pubsub.py	Fri May 19 12:33:11 2017 +0200
+++ b/frontends/src/jp/cmd_pubsub.py	Fri May 19 12:33:54 2017 +0200
@@ -332,7 +332,7 @@
         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 @@
                 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):