Sort user nicknames on /api/server (stats.py)

This commit is contained in:
jesopo 2018-12-26 23:22:12 +00:00
parent f0ee00da3a
commit e5600a6927

View file

@ -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