From b6fb719cc991b63f360ff46355b0f96a9aac2a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 8 Jun 2018 23:40:41 +0100 Subject: Add configuration for default_muc server to join if no muc available on domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/core/core.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'poezio/core/core.py') 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 -- cgit v1.2.3