From 7c656961ce8182dd58ae5265fe01f644f75fa4cf Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 16 Feb 2020 12:23:47 +0100 Subject: [PATCH] ejabberd 19.* fix * ejabberd 19 and above report muc count only on the muc host --- ejabberdrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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