From 052eba788f9dd22b080a885d219d0a5f716c1ef9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 15 May 2019 17:13:05 +0100 Subject: [PATCH] Show server versoin (from RPL_MYINFO) on /api/servers --- modules/stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stats.py b/modules/stats.py index 6b19f061..d25f6914 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -62,7 +62,8 @@ class Module(ModuleManager.BaseModule): "channels": { c.name: self._channel_stats(c) for c in server.channels }, - "capabilities": list(server.agreed_capabilities) + "capabilities": list(server.agreed_capabilities), + "version": server.version } @utils.hook("api.get.servers")