diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2011-12-04 22:21:47 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2011-12-04 22:21:47 +0100 |
commit | 15ee8873a9635ebcbb02df4cb12e8714a36985f4 (patch) | |
tree | ed7e096952558d3bd87ce8b46f50d4e893a33033 /miniircd | |
parent | 68962fb3ddddd9e52c157f104892017683abd350 (diff) | |
download | miniircd-15ee8873a9635ebcbb02df4cb12e8714a36985f4.tar.gz miniircd-15ee8873a9635ebcbb02df4cb12e8714a36985f4.zip |
Sort nick/channel lists before sending reply
Diffstat (limited to 'miniircd')
-rwxr-xr-x | miniircd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -221,8 +221,8 @@ class Client(object): self.reply("353 %s = %s :%s" % (self.nickname, channelname, - " ".join([x.nickname - for x in channel.members]))) + " ".join(sorted(x.nickname + for x in channel.members)))) self.reply("366 %s %s :End of NAMES list" % (self.nickname, channelname)) @@ -235,6 +235,7 @@ class Client(object): channel = server.get_channel(channelname) if channel: channels.append(channel) + channels.sort(key=lambda x: x.name) for channel in channels: self.reply("322 %s %s %d :%s" % (self.nickname, channel.name, |