diff options
| author | 2018-11-27 13:23:20 +0000 | |
|---|---|---|
| committer | 2018-11-27 13:23:20 +0000 | |
| commit | ab60012cbed5cd65c125db916ba8cfa7546798d4 (patch) | |
| tree | 51d7356bc3dd4a6ff0c90324fb6ee524701865fe | |
| parent | Send WHO on self mode change, to catch any important changes to our user (diff) | |
| signature | ||
Add channel stats to /api/servers
| -rw-r--r-- | modules/stats.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/stats.py b/modules/stats.py index 137e125e..279e6593 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -58,7 +58,8 @@ class Module(ModuleManager.BaseModule): server.nickname, server.username, server.hostname), "users": len(server.users), "bytes-written": server.bytes_written, - "bytes-read": server.bytes_read + "bytes-read": server.bytes_read, + "channels": [self._channel_stats(c) for c in server.channels] } @utils.hook("api.get.servers") |
