Show bytes read/written in server stats

This commit is contained in:
jesopo 2018-11-11 08:44:46 +00:00
parent 9826209ddf
commit 8d350aa5f5

View file

@ -56,7 +56,9 @@ class Module(ModuleManager.BaseModule):
"alias": server.alias,
"hostmask": "%s!%s@%s" % (
server.nickname, server.username, server.hostname),
"users": len(server.users)
"users": len(server.users),
"bytes-written": server.bytes_written,
"bytes-read": server.bytes_read
}
@utils.hook("api.get.servers")