summaryrefslogtreecommitdiff
path: root/poezio/core/core.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-06-08 23:40:41 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2018-12-16 16:57:48 +0000
commitb6fb719cc991b63f360ff46355b0f96a9aac2a0e (patch)
tree2a6d2fc10556d7f92963b30ca1902d81ee014d94 /poezio/core/core.py
parent0f344b899c0dff685795108fee4d2de850d92cd6 (diff)
downloadpoezio-b6fb719cc991b63f360ff46355b0f96a9aac2a0e.tar.gz
poezio-b6fb719cc991b63f360ff46355b0f96a9aac2a0e.tar.bz2
poezio-b6fb719cc991b63f360ff46355b0f96a9aac2a0e.tar.xz
poezio-b6fb719cc991b63f360ff46355b0f96a9aac2a0e.zip
Add configuration for default_muc server to join if no muc available on domain
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r--poezio/core/core.py10
1 files changed, 6 insertions, 4 deletions
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