Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-22 23:51:41 +0300
committerlovetox <philipp@hoerist.com>2020-03-22 23:51:41 +0300
commit3e5e6efc2a6169266ff3307bb0460059510aefd3 (patch)
tree8cada11008d0dc1a74c99c4b0739e34995056a4a
parent1031b9afc7acd5606158bb5495c05202f7146217 (diff)
Client: Add property custom_host
-rw-r--r--nbxmpp/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py
index d472cd6..6ca8244 100644
--- a/nbxmpp/client.py
+++ b/nbxmpp/client.py
@@ -167,6 +167,10 @@ class Client(Observable):
def set_mode(self, mode):
self._mode = mode
+ @property
+ def custom_host(self):
+ return self._custom_host
+
def set_custom_host(self, host, protocol, type_):
if self._domain is None:
raise ValueError('Call set_domain() first before set_custom_host()')