Commit b6fb719c authored by Maxime Buquet's avatar Maxime Buquet

Add configuration for default_muc server to join if no muc available on domain

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 0f344b89
...@@ -49,6 +49,7 @@ DEFAULT_CONFIG = { ...@@ -49,6 +49,7 @@ DEFAULT_CONFIG = {
'custom_host': '', 'custom_host': '',
'custom_port': '', 'custom_port': '',
'default_nick': '', 'default_nick': '',
'default_muc_service': '',
'deterministic_nick_colors': True, 'deterministic_nick_colors': True,
'device_id': '', 'device_id': '',
'nick_color_aliases': True, 'nick_color_aliases': True,
......
...@@ -877,10 +877,12 @@ class Core: ...@@ -877,10 +877,12 @@ class Core:
contacts to join in. contacts to join in.
""" """
# Use config.default_muc as muc component if available, otherwise # Use config.default_muc_service as muc component if available,
# find muc component by disco#items-ing the user domain. If not, give # otherwise find muc component by disco#items-ing the user domain. If
# up # not, give up
default_muc = 'chat.cluxia.eu' default_muc = config.get('default_muc_service')
if not default_muc:
return
nick = self.own_nick nick = self.own_nick
room = uuid.uuid4().hex + '@' + default_muc room = uuid.uuid4().hex + '@' + default_muc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment