From 5fb21b5d06e346d026e7676170518db7de2b5ed5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 4 Dec 2003 07:18:10 +0000 Subject: [PATCH] Eh, sorted some output. --- src/Channel.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Channel.py b/src/Channel.py index 9014fd6d8..13151a7a3 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -326,10 +326,12 @@ class Channel(callbacks.Privmsg): channel = channelarg or channel c = ircdb.channels.getChannel(channel) if len(c.ignores) == 0: - irc.reply(msg, 'I\'m not currently ignoring any hostmasks ' - 'in %r' % channel) - return - irc.reply(msg, utils.commaAndify(imap(repr, c.ignores))) + s = 'I\'m not currently ignoring any hostmasks in %r' % channel + irc.reply(msg, s) + else: + L = c.ignores[:] + L.sort() + irc.reply(msg, utils.commaAndify(imap(repr, L))) ignores = privmsgs.checkChannelCapability(ignores, 'op') @@ -448,6 +450,7 @@ class Channel(callbacks.Privmsg): if c.lobotomized: L.append(channel) if L: + L.sort() s = 'I\'m currently lobotomized in %s.' % utils.commaAndify(L) irc.reply(msg, s) else: