From b6df18930c69fb48924a16e0df58cdfb6b3594d2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 11 Feb 2019 18:26:16 +0000 Subject: [PATCH] `bytes_written`/`bytes_read` is now on IRCServer.socket (stats.py) --- modules/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stats.py b/modules/stats.py index 3b64db76..8e533443 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -57,8 +57,8 @@ class Module(ModuleManager.BaseModule): "hostmask": "%s!%s@%s" % ( server.nickname, server.username, server.hostname), "users": len(server.users), - "bytes-written": server.bytes_written, - "bytes-read": server.bytes_read, + "bytes-written": server.socket.bytes_written, + "bytes-read": server.socket.bytes_read, "channels": { c.name: self._channel_stats(c) for c in server.channels },