mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Admin: 'channels': call reply() w/ private=True instead of requiring privacy
This commit is contained in:
parent
35d267b498
commit
b59db48e20
@ -167,16 +167,15 @@ class Admin(callbacks.Plugin):
|
|||||||
def channels(self, irc, msg, args):
|
def channels(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
|
||||||
Returns the channels the bot is on. Must be given in private, in order
|
Returns the channels the bot is on.
|
||||||
to protect the secrecy of secret channels.
|
|
||||||
"""
|
"""
|
||||||
L = irc.state.channels.keys()
|
L = irc.state.channels.keys()
|
||||||
if L:
|
if L:
|
||||||
utils.sortBy(ircutils.toLower, L)
|
utils.sortBy(ircutils.toLower, L)
|
||||||
irc.reply(format('%L', L))
|
irc.reply(format('%L', L), private=True)
|
||||||
else:
|
else:
|
||||||
irc.reply(_('I\'m not currently in any channels.'))
|
irc.reply(_('I\'m not currently in any channels.'))
|
||||||
channels = wrap(channels, ['private'])
|
channels = wrap(channels)
|
||||||
|
|
||||||
def do484(self, irc, msg):
|
def do484(self, irc, msg):
|
||||||
irc = self.pendingNickChanges.get(irc, None)
|
irc = self.pendingNickChanges.get(irc, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user