From fe4fb9c84c02243c4bd689d224f1a98ff8f1b6e9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 7 Oct 2017 22:27:43 -0700 Subject: [PATCH] stats: use a simpler /stats c format --- plugins/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/stats.py b/plugins/stats.py index 1805630..7e7710f 100644 --- a/plugins/stats.py +++ b/plugins/stats.py @@ -99,12 +99,12 @@ def handle_stats(irc, source, command, args): # 213/RPL_STATSCLINE: "C * " for netname, serverdata in sorted(conf.conf['servers'].items()): # We're cramming as much as we can into the class field... - _num(213, "C %s * %s %s protocol:%s__ssl:%s__encoding:%s" % + _num(213, "C %s * %s %s [%s:%s:%s]" % (serverdata.get('ip', '0.0.0.0'), netname, serverdata.get('port', 0), serverdata['protocol'], - bool(serverdata.get('ssl')), + 'ssl' if serverdata.get('ssl') else 'no-ssl', serverdata.get('encoding', 'utf-8')) ) elif stats_type == 'o':