diff sat/plugins/plugin_misc_text_commands.py @ 3544:ae5f63e5ed2c

plugin XEP-0045: fix `/join` text command
author Goffi <goffi@goffi.org>
date Thu, 03 Jun 2021 17:59:41 +0200
parents be6d91572633
children 524856bd7b19
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_text_commands.py	Thu Jun 03 17:47:25 2021 +0200
+++ b/sat/plugins/plugin_misc_text_commands.py	Thu Jun 03 17:59:41 2021 +0200
@@ -327,7 +327,7 @@
             if arg[-1] != "@":
                 return jid.JID(arg)
             return jid.JID(arg + service_jid)
-        return jid.JID("%s@%s" % (arg, service_jid))
+        return jid.JID(f"{arg}@{service_jid}")
 
     def feedBack(self, client, message, mess_data, info_type=FEEDBACK_INFO_TYPE):
         """Give a message back to the user"""