summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)