bytes_written/bytes_read is now on IRCServer.socket (stats.py)

This commit is contained in:
jesopo 2019-02-11 18:26:16 +00:00
parent 48fe6b7391
commit b6df18930c

View file

@ -57,8 +57,8 @@ class Module(ModuleManager.BaseModule):
"hostmask": "%s!%s@%s" % ( "hostmask": "%s!%s@%s" % (
server.nickname, server.username, server.hostname), server.nickname, server.username, server.hostname),
"users": len(server.users), "users": len(server.users),
"bytes-written": server.bytes_written, "bytes-written": server.socket.bytes_written,
"bytes-read": server.bytes_read, "bytes-read": server.socket.bytes_read,
"channels": { "channels": {
c.name: self._channel_stats(c) for c in server.channels c.name: self._channel_stats(c) for c in server.channels
}, },