aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-02-16 12:23:47 +0100
committernico <nico@magicbroccoli.de>2020-02-16 12:23:47 +0100
commit7c656961ce8182dd58ae5265fe01f644f75fa4cf (patch)
treef1562e06d490a8909632d563857962cc5d7a3d98
parent5ce45fca7f5166fe1ec885a85e048b4a627eed29 (diff)
ejabberd 19.* fix
* ejabberd 19 and above report muc count only on the muc host
-rwxr-xr-xejabberdrpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdrpc.py b/ejabberdrpc.py
index d90831b..02c0b3b 100755
--- a/ejabberdrpc.py
+++ b/ejabberdrpc.py
@@ -155,7 +155,7 @@ class EjabberdMetrics:
def fetch_muc(self, vhost=None):
host = "global"
if vhost is not None:
- if self._verstring.major > 19:
+ if self._verstring.major >= 19:
host = "conference." + vhost
else:
host = vhost