Skip to content
Snippets Groups Projects
Commit 31f3e2f4 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

redo substitution when we get resource from config. fixes #3060

parent 965e2b1c
No related branches found
No related tags found
No related merge requests found
......@@ -747,6 +747,12 @@ class Connection(ConnectionHandlers):
self.on_purpose = False
self.server_resource = gajim.config.get_per('accounts', self.name,
'resource')
# All valid resource substitution strings should be added to this hash.
if self.server_resource:
self.server_resource = Template(self.server_resource).\
safe_substitute({
'hostname': socket.gethostname()
})
self.connect_and_init(show, msg, signed)
elif show == 'offline':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment