diff --git a/poezio/config.py b/poezio/config.py index a1f3dd49..d5a81c0e 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -49,6 +49,7 @@ DEFAULT_CONFIG = { 'custom_host': '', 'custom_port': '', 'default_nick': '', + 'default_muc_service': '', 'deterministic_nick_colors': True, 'device_id': '', 'nick_color_aliases': True, diff --git a/poezio/core/core.py b/poezio/core/core.py index 985dcbab..5090a211 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -877,10 +877,12 @@ class Core: contacts to join in. """ - # Use config.default_muc as muc component if available, otherwise - # find muc component by disco#items-ing the user domain. If not, give - # up - default_muc = 'chat.cluxia.eu' + # Use config.default_muc_service as muc component if available, + # otherwise find muc component by disco#items-ing the user domain. If + # not, give up + default_muc = config.get('default_muc_service') + if not default_muc: + return nick = self.own_nick room = uuid.uuid4().hex + '@' + default_muc