diff options
author | genofire <geno+dev@fireorbit.de> | 2020-06-29 19:34:48 +0200 |
---|---|---|
committer | genofire <geno+dev@fireorbit.de> | 2020-06-29 19:34:48 +0200 |
commit | 091b6e525aacad1abf8d800338d242141dec11c2 (patch) | |
tree | 73137b27409b00a45c76c2bfbf4b5e9d029a4ff1 /calls.py | |
parent | 1256ea7de8a093f51b116f2802871480cd646ae8 (diff) | |
parent | 044e0334d2bfb9c4b076afc562e4fb3d17c7db20 (diff) |
Merge branch 'add-ci' into 'master'
Add ci
See merge request sum7/ejabberd-tools!6
Diffstat (limited to 'calls.py')
-rw-r--r-- | calls.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,8 +14,8 @@ class EjabberdApiCalls(EjabberdApi): @property def nodename(self): if self._login is not None: - node_str = re.compile('The node \'(.*)\'') - status = self.cmd('status', {}) + node_str = re.compile("The node '(.*)'") + status = self.cmd("status", {}) # matches try: @@ -32,8 +32,8 @@ class EjabberdApiCalls(EjabberdApi): @property def verstring(self): if self._login is not None: - ver_str = re.compile('([1-9][0-9.]+(?![.a-z]))\\b') - status = self.cmd('status', {}) + ver_str = re.compile("([1-9][0-9.]+(?![.a-z]))\\b") + status = self.cmd("status", {}) # matches try: @@ -117,7 +117,7 @@ class EjabberdApiCalls(EjabberdApi): host = "global" if vhost is not None: if self.verstring.major >= 19: - host = '.'.join([muc_host, vhost]) + host = ".".join([muc_host, vhost]) else: host = vhost result = self.cmd("muc_online_rooms", {"host": host}) |