summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-12-15 23:50:11 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2018-12-16 16:57:48 +0000
commit936e16f98f7b9cf4062de62cc9c5ef30b1e44820 (patch)
tree8252f43379166ffbc82e329dcb68e5c8509fcf65
parentf86626a7f43d7669877de17c181596d7644e5cad (diff)
downloadpoezio-936e16f98f7b9cf4062de62cc9c5ef30b1e44820.tar.gz
poezio-936e16f98f7b9cf4062de62cc9c5ef30b1e44820.tar.bz2
poezio-936e16f98f7b9cf4062de62cc9c5ef30b1e44820.tar.xz
poezio-936e16f98f7b9cf4062de62cc9c5ef30b1e44820.zip
impromptu: rework string format
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 54c33a0d..01748659 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -934,7 +934,8 @@ class Core:
return
nick = self.own_nick
- room = uuid.uuid4().hex + '@' + default_muc
+ localpart = uuid.uuid4().hex
+ room = '{!s}@{!s}'.format(localpart, default_muc)
self.open_new_room(room, nick).join()
iq = self._impromptu_room_form(room)