Sort nicknames case-insensitively (stats.py)
This commit is contained in:
parent
e5600a6927
commit
b8b0adb811
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
def _channel_stats(self, channel):
|
||||
return {
|
||||
"users": sorted([user.nickname for user in channel.users]),
|
||||
"users": sorted([user.nickname for user in channel.users],
|
||||
key=lambda nickname: nickname.lower()),
|
||||
"topic": channel.topic,
|
||||
"topic-set-at": channel.topic_time,
|
||||
"topic-set-by": channel.topic_setter_nickname
|
||||
|
|
Loading…
Reference in a new issue