mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Eh, sorted some output.
This commit is contained in:
parent
5300ca59fd
commit
5fb21b5d06
@ -326,10 +326,12 @@ class Channel(callbacks.Privmsg):
|
|||||||
channel = channelarg or channel
|
channel = channelarg or channel
|
||||||
c = ircdb.channels.getChannel(channel)
|
c = ircdb.channels.getChannel(channel)
|
||||||
if len(c.ignores) == 0:
|
if len(c.ignores) == 0:
|
||||||
irc.reply(msg, 'I\'m not currently ignoring any hostmasks '
|
s = 'I\'m not currently ignoring any hostmasks in %r' % channel
|
||||||
'in %r' % channel)
|
irc.reply(msg, s)
|
||||||
return
|
else:
|
||||||
irc.reply(msg, utils.commaAndify(imap(repr, c.ignores)))
|
L = c.ignores[:]
|
||||||
|
L.sort()
|
||||||
|
irc.reply(msg, utils.commaAndify(imap(repr, L)))
|
||||||
ignores = privmsgs.checkChannelCapability(ignores, 'op')
|
ignores = privmsgs.checkChannelCapability(ignores, 'op')
|
||||||
|
|
||||||
|
|
||||||
@ -448,6 +450,7 @@ class Channel(callbacks.Privmsg):
|
|||||||
if c.lobotomized:
|
if c.lobotomized:
|
||||||
L.append(channel)
|
L.append(channel)
|
||||||
if L:
|
if L:
|
||||||
|
L.sort()
|
||||||
s = 'I\'m currently lobotomized in %s.' % utils.commaAndify(L)
|
s = 'I\'m currently lobotomized in %s.' % utils.commaAndify(L)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user