Show server versoin (from RPL_MYINFO) on /api/servers

This commit is contained in:
jesopo 2019-05-15 17:13:05 +01:00
parent 7547eee96d
commit 052eba788f

View file

@ -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")