From e5600a69273620b57dcead530a0173a356128c08 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Dec 2018 23:22:12 +0000 Subject: [PATCH] Sort user nicknames on /api/server (stats.py) --- modules/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stats.py b/modules/stats.py index 32ad3bee..6a971435 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -83,7 +83,7 @@ class Module(ModuleManager.BaseModule): def _channel_stats(self, channel): return { - "users": [user.nickname for user in channel.users], + "users": sorted([user.nickname for user in channel.users]), "topic": channel.topic, "topic-set-at": channel.topic_time, "topic-set-by": channel.topic_setter_nickname